theprajin / ecommerce-nodejs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ecommerce Project(NodeJS,Express,MongoDB)

Setup the Project

  • hit "npm install" command on the terminal
  • create .env file in the root folder

In .env file

  • create MONGO_URL variable with value related to MongoDB connection(offline or online MongoDB database can be used)
  • add variables in JWT_SECRET=jwtSecret (or any secret texts to be used) and JWT_LIFETIME=1d (or the time you want to set)
  • add variable ENVIRON="LOCAL"

Starting the server

  • hit "npm start" on terminal

Testing API endpoints

  • Hit "localhost:5000" on browser url and test the api with swagger UI
  • Or you can direct enter the url: "localhost:5000/framework/api/documentation"

About


Languages

Language:JavaScript 100.0%