Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/relix18/techydeals-server


https://github.com/relix18/techydeals-server

bcrypt cloudinary expressjs jsonwebtoken mongodb mongoose nodejs nodemailer

Last synced: 28 days ago
JSON representation

Awesome Lists containing this project

README

        

# MERN E-COMMERCE BACKEND

Hi! My name is **Arif Ahmad**, I have created this project to learn some new features.

# Prerequisite

Must have basic knowledge of **Node**, **React**, **Express**, **MongoDB** .

# Install Dependencies

**For Dev** - `npm i && npm run dev`

## Env Variables

Make Sure to Create a .env file in root directory and add appropriate variables in order to use the app.

**Essential Variables**

CLIENT_URL = `frontend url`

PORT =

NODE_ENV = **development** or **production**

MONGO_URI = `mongo url`

JWT_SECRET = `random string more the better`

JWT_EXPIRE = `reset password token expire time default` **5d**

COOKIE_EXPIRE = `cookie expire time`

SMTP_HOST = "smtp.gmail.com"

SMTP_PORT = 465

SMTP_SERVICE = `gmail`

SMTP_MAIL = `gmail account to send mail to user`

SMTP_PASSWORD = `google account app password`

CLOUDINARY_NAME= `signup to cloudinary and get the cloudinary name on your profile`

CLOUDINARY_API_KEY= `signup to cloudinary and get the api key on your profile`

CLOUDINARY_API_SECRET= `signup to cloudinary and get the api secret on your profile`

## Author

**Instagram** Click [Here](https://www.instagram.com/ig_relix/) **@relix**

**Discord** Click [Here](https://discord.com/users/440030380888817684) **@relix**