Skip to content

Guillerbr/api-rest-node-mongo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

93 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Api-Rest-Nodejs-Mongodb -Framework simple SERVER API

Repository Dependencies: bcryptjs, cors, body-parse, express, jsonwebtoken, mongoose, fs, path, nodemailer, nodemailer-express-handlebars, See package.json file

#See package.json file

Use Mailtrap for tests server smtp and email.Config in config/mail.json credentials

#Frist Fork?

npm install

#Start project Nodejs and Nodemon

node src/index

or Nodemon module nodemon src/index

#Routes

Middleware authentication /auth/register POST->register user email,password. /auth/authuser POST->login user email and password. /auth/forgot_password POST-> /auth/reset_password POST->

Payments /auth/payments POST-> { name_card, number_card, date_card, cvv_card } = req.body; /auth/payments GET-> /auth/payment/:paymentId GET-> /auth/payment/:paymentId PUT-> /auth/payment/:paymentId DELETE->

Projects projects/ POST-> { title, description, tasks } = req.body; projects/ GET-> projects/:projectId GET-> projects/:projectId PUT-> projects/:projectId DELETE->

Account /account POST-> { balance, deposits, shopping } = req.body;

#API AUTH IN HEADERS

Type: JSON

Headers: Authorization : bearer $token

#API Functions

-Email and password registration. -Email and password authentication. -Reset password by emailing link token -Make password change

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published