- response now time to client
- response only 10 camping site data to client
GET
,/campsites
- read all campsitesPOST
,/campsites
- create a campsiteGET
,/campsites/:id
- read a specific campsitePATCH
,/campsites/:id
- update a specific campsiteDELETE
,/campsites/:id
- delete a speicific campsite
POST
,/users/signup
- sign upPOST
,/users/login
- loginGET
,/users/logout
- logout
- Clone this project
$git clone https://github.com/joong8812/deepbrain-my-server.git
- Install package which it uses
$npm install
- Run the server
$node server
You can install mongodb server through Docker. (You should install Docker first)
$docker pull mongo
$docker run –name mongo -e MONGO_INITDB_ROOT_USERNAME=root -e MONGO_INITDB_ROOT_PASSWORD=root -d -p 27017:27017 mongo