Todo RESTful API build with Node.JS, Express, Mocha, MongoDB, and more
this repo following instruction Andrew Mead in udemy
You need to have installed Node.js and MongoDB
To install depedencies enter project folder and run following comand:
npm install
to run this project you have to create config.json file in config folder
{
"test": {
"PORT": 3000,
"MONGODB_URI": "mongodb://localhost:27017/TodoApp",
"JWT_SECRET": "Your secrete key"
},
"development": {
"PORT": 3000,
"MONGODB_URI": "mongodb://localhost:27017/TodoAppTest",
"JWT_SECRET": "Your secrete key"
}
}
npm run build
npm run test
set header "x-auth" : token
JSON example
{
"email": "[email protected]",
"password": "******"
}
set header "x-auth" : token
JSON example
{
"email": "[email protected]",
"password": "******"
}
set header "x-auth" : token
JSON example
{
"text": "learn new tech"
}
set header "x-auth" : token
set header "x-auth" : token
set header "x-auth" : token
JSON example
{
"completed": true
}
set header "x-auth" : token