This is a simple online shopping store built using Node.js, Express.js, MongoDB, and EJS (Embedded JavaScript) for the frontend. The application allows users to browse products, add them to the cart, and make purchases.
-
Clone the repository:
git clone https://github.com/hzaheer48/online-shopping-store.git cd online-shopping-store
-
Install dependencies:
npm install
-
Set up your MongoDB database and update the connection string in
config/db.js
. -
Start the application:
node app.js
- Visit http://localhost:8080 in your browser to access the online shopping store.
- Browse products, add them to the cart, and proceed to checkout.
- Users can create accounts, log in, and view order history.
- Node.js
- Express.js
- MongoDB
- EJS
- Body-parser
- Express-session
- Connect-flash
- config/db.js: MongoDB connection setup.
- public: Static files (stylesheets, images, etc.).
- router: Route handlers for different sections (index, products, users).
- views: EJS templates for rendering pages.
- app.js: Main application file containing Express setup.
Feel free to contribute to the project by opening issues or submitting pull requests. Follow the Contributing Guidelines for more details.