An e-commerce platform built using EJS, Express.js, and MongoDB.
check out features
Ensure you have the following installed on your system:
- Node.js (v14 or above recommended)
- MongoDB (running locally or on a cloud service like MongoDB Atlas)
-
Clone the repository:
git clone <repository-url> cd <repository-folder>
-
Install dependencies:
npm install
-
Set up environment variables:
- Create a
.env
file in the root of the project. - Add the following variables:
MONGO_URI=<your-mongodb-connection-string> *USER_MAIL - for nodemailer setup(optional) *USER_PASS - for nodemailer setup(optional)
- Create a
-
Start the MongoDB server:
mongod
If you are using MongoDB Atlas, ensure your connection string is correctly configured in the
.env
file. -
Start the development server:
npm start
-
Open your browser and navigate to:
http://localhost:5000