- NodeJS
- Express
- MongoDB
- Mongoose
- Babel
- Git clone this repository
https://github.com/Ruqoyah/population-management.git
- Change your directory
cd population-management
- Install all dependencies
npm install
- Create .env file which will be used to load environment variables see sample in
.env.example
file in the project - Start the app
npm run start:dev
for development - Navigate to
localhost:3100
on postman to test the endpoints
- [POST] /api/locations - To create a new location
- [GET] /api/locations - Get all locations
- [PUT] /api/locations/:locationId - Update location
- [DELETE] /api/locations/:locationId - To delete location