A REST API which has CRUD funtionality.
Server: Node, Express
Database: MongoDB
Clone the project
git clone https://github.com/hillbyte/crud-rest-api.git
Go to the project directory
cd crud-rest-api
Install dependencies
npm install
Start the server
node server.js
To run this project, you will need to add the following environment variables to your .env file
PORT=8000
DB_URL=replace this string with your own mongodb uri
SERVER=localhost
GET /api/fetch-emp
GET /api/fetch-emp/${id}
POST /api/create-emp
PUT /api/edit-emp/${id}
DELETE /api/delete-emp/${id}