Giter Site home page Giter Site logo

api-rest-node-mongo's Introduction

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

api-rest-node-mongo's People

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.