ugglr / REST-Express-Mongo-Backend-Boilerplate

Hit the ground running with this powerful production worthy REST Backend API Boilerplate. Comes with user models, password hashing and sending JWT. Stack: Node, Express, MongoDB+Mongoose.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

REST Express MongoDB Backend Boilerplate

TECH STACK

  • NODE
  • EXPRESS
  • MONGOOSE
  • MONGODB

HOW TO USE PROJECT

(NOTE ON MONGODB: I USE A LOCAL INSTALLATION OF MONGODB ON THE DEFAULT PORTS AND IF YOU DO THE SAME THE SERVER SHOULD CONNECT DIRECTLY. IF YOU ARE USING MONGO ATLAS OR ANOTHER CLOUD SOLUTION YOU'LL NEED TO GET THAT CONFIGURED. )

git clone "put-repo-https-link here"

Install dependencies

yarn

Start Server (runs: nodemon index.js)

yarn run start

If you are using Postman switch to raw + json

Endpoints

USER:

GET: Request body (JSON)

{
    "email": "mail@mail.com"
}

POST: Request body (JSON)

{
    "email": "mail@mail.com",
    "password": "SecretPassword"
}

POST: Request body (JSON)

{
    "email": "mail@mail.com",
    "password": "SecretPassword"
}

About

Hit the ground running with this powerful production worthy REST Backend API Boilerplate. Comes with user models, password hashing and sending JWT. Stack: Node, Express, MongoDB+Mongoose.


Languages

Language:JavaScript 100.0%