Skip to content

hillbyte/crud-rest-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EXPRESS CRUD REST API

A REST API which has CRUD funtionality.

Tech Stack

Server: Node, Express

Database: MongoDB

Run Locally

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

Environment Variables

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

API Reference

Get all users

  GET /api/fetch-emp

Get user

  GET /api/fetch-emp/${id}

Create user

  POST /api/create-emp

Update user

  PUT /api/edit-emp/${id}

Delete user

  DELETE /api/delete-emp/${id}

Releases

No releases published

Packages

No packages published