-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Pravin kalbhor edited this page Dec 13, 2016
·
2 revisions
Welcome to the NodeJs-RestServer-Setup-MongoDB wiki!
How to start mongodb
from mongodb installation folder execute below command
./bin/mongod --dbpath "path to database data dir"
to start the monogoDb console - ./bin/mongo
to switch to ur database - use
login to API - POST https://localhost:3443/users/login with {"username":"admin","password":"admin"}
response- { "status": "Login successful!", "success": true, "token": "" }
calling api - GET https://localhost:3443/users Header : x-access-token token