CihanEksiogluBloo / rating-server-public

Backend to Rating App

Home Page:https://github.com/CihanEksiogluBloo/Rating

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Backend to Rating App

To get the Node server running locally:

  • Clone this repo

  • npm install to install all required dependencies

  • Create MongoDb Cluster and Get Connection MongoDb URI

  • Set environment variables in config.env under ./config/env

    • Set MONGO_URI = <YOUR_MONGO_URI>
    • Set JWT_SECRET_KEY = <YOUR_SECRET_KEY>
  • npm run dev to start the local server

Code Overview

Dependencies

  • expressjs - The server for handling and routing HTTP requests
  • jsonwebtoken - For generating JWTs used by authentication
  • mongoose - For modeling and mapping MongoDB data to JavaScript
  • bcryptjs - Hashing Password
  • dotenv - Zero-Dependency module that loads environment variables
  • multer - Node.js middleware for uploading files

Authentication

Requests are authenticated using the Authorization header and value Bearer: {{token}}. with a valid JWT.

About

Backend to Rating App

https://github.com/CihanEksiogluBloo/Rating


Languages

Language:JavaScript 100.0%