Skip to content
This repository has been archived by the owner on Jun 27, 2022. It is now read-only.

An E-commerce backend with Node.js, Express, and MongoDB.

Notifications You must be signed in to change notification settings

buraksekili/ecommerce-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

87 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MongoDB Connection

You need to create a .env file on the main folder (./). Your .env file's format must be the same as following;

MONGO_USERNAME  =   <username>
MONGO_PASSWORD  =   <yourpassword>
JWT_SECRET      =   <anysecretisOK>
EMAIL_ADDR      =   <EMAIL_ADDR>
EMAIL_PASS      =   <EMAIL_ADDR_PASS>

Docker

You can use docker-compose for the local development environment instead of your actual MongoDB Cluster. Also, tests are using docker.

In order to set up required images and local environment;

$ docker-compose up -d

Run Server

$ npm run dev

Server listens on :3000. The port number can be changed by exporting PORT.

$ export PORT="3001"
$ npm run dev

About

An E-commerce backend with Node.js, Express, and MongoDB.

Resources

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •