GitHunt
IK

iklymchuk/restful-api-mongo

API service for storing and extraction test users

Restful api mongo

Project upload

git clone git@github.com:iklymchuk/restful-api-mongo.git

cd restful-api-mongo

npm install

Mongo configuration

Creating new user - mongo shell

db.createUser( { user: "admin", pwd: "admin", roles: [] } )

Start app

SET NODE_ENV=dev && node server.js

Testing app

curl -d "username=testUser&password=testPassword" -H "Content-Type: application/x-www-form-urlencoded" -X POST http://localhost:8085/user

Languages

JavaScript100.0%

Contributors

Created August 26, 2017
Updated July 4, 2022