Skip to content

Ecommerce Backend connecting react with mongodb using express and node js

License

Notifications You must be signed in to change notification settings

Bikram-ghuku/ecommerce_server

Repository files navigation

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