In this project, I built a fully functional Ecommerce website, which contains several features such as authentication, upload pictures, admin managament, pagination, PayPal API for handling payment. The website is built from the inside out using MERN stack technology.
Technology: React, Redux, NodeJs, CSS, HTML, JavaScript.
Add a .env file in root folder with the following without <> tags
NODE_ENV = development
PORT = 5000
MONGO_URI = <your_mongoDB_Atlas_uri_with_credentials>
JWT_SECRET = <your_JWT_secret>
PAYPAL_CLIENT_ID = <your_PayPal_client_ID>
npm install
cd frontend
npm install
npm run dev
Now you can check the site on http://localhost:3000/
Running a build in the frontend
cd frontend
npm run build
In .env file change
NODE_ENV = production
After running a build in the frontend ๐, cd into the root of the project. And run...
Linux/Unix
node server.js
Windows Cmd Prompt or Powershell
node server.js
Check in browser on http://localhost:5000/