A Geospatial Query System built with NestJS and MongoDB
- Node.js (>= 18.x)
- Bun (>= 1.x) - Recommended package manager
- Alternatively, you can use:
- npm (>= 10.x)
- yarn (>= 4.x)
- pnpm (>= 9.x)
-
Clone the repository:
git clone https://github.com/sarcasterXO/geospatial-query-system.git cd geospatial-query-system
-
Install dependencies:
npm install # or bun install # or yarn install # or pnpm install
-
Copy the example environment file and configure it as needed:
cp .env.example .env
To seed the database with initial data, run the following command:
node ./scripts/seedData.mjs
# or
bun run ./scripts/seedData.mjs
To start the application in development mode with hot-reloading:
npm run dev
# or
bun dev
# or
yarn dev
# or
pnpm run dev
To build and start the application in production mode:
npm run build
npm run start
# or
bun run build
bun start
# or
yarn build
yarn start
# or
pnpm run build
pnpm run start
To run the unit tests:
npm run test
# or
bun run test
# or
yarn test
# or
pnpm run test
To run the end-to-end tests:
npm run test:e2e
# or
bun run test:e2e
# or
yarn test:e2e
# or
pnpm run test:e2e
The API documentation is available at: http://localhost:3071/docs
Note: If you modify the
PORT
value in the.env
file, make sure to update the URL accordingly to reflect the new port.
This project is licensed under the MIT License. See the LICENSE file for details.