Skip to content

prosper20/everything-gadget

Repository files navigation

EverythingGadget API ⛳

fork repository

This is a repository for the API of Everything-Gadgets, an E-Commerce website, where you may purchase your preferred electronics products.

Tech Stack 🛠️

NodeJS Express.js MongoDB

API Description

Click here for the current api documentaion on Postman.

Run locally

  1. Fork this repo

  2. Clone the project

       git clone your forked url
  3. Install dependencies using

       npm install
  4. Create a .env file in the root folder and set your environment variables

  5. Run in either producton or development mode

    for development mode

       npm run dev

    for production mode

       npm run prod

Environment Variables

To run this project, you will need to add the following environment variables to your .env file

  • PORT : port on which the server would run.
  • MONGO_URI: connection string for the mongodb database.
  • MONGO_USER : mongodb username.
  • MONGO_PASS : your mongodb password.
  • NODE_ENV : set to "development".
  • JWT_SECRET : secret for jwt token.
  • JWT_EXPIRES_IN : token duration eg "90d".