Skip to content

Latest commit

 

History

History
40 lines (29 loc) · 651 Bytes

README.md

File metadata and controls

40 lines (29 loc) · 651 Bytes

MERN ecommerce backend

Run with code

Clone the repo with

git clone https://github.com/Bikram-ghuku/ecommerce_server

Make a .env file

PORT = <PORT_FOR_SERVER>
MONGO_URI = <MONGO_DB_SERVER_URL>
STRIPE_SK_KEY = <STRIPE_SECRET_KEY>
STRIPE_PU_KEY = <STRIPE_PUBLIC_KEY>

Run the server

npm start

Run with docker

Pull the image

docker pull ghcr.io/bikram-ghuku/ecommerce_server:deploy
docker run -p 8080:<PCPORT> -e PORT=8080 \
-e MONGO_URI=<MONGO DB URI> \
-e STRIPE_SK_KEY=<STRIPE-SECRET-KEY> \
-e STRIPE_PU_KEY=<STRIPE-PUBLIC-KEY> 
bikramghuku05/ecommerce_server