Skip to content

hzaheer48/OnlineShopping

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Online Shopping Store

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.

Table of Contents

Installation

  1. Clone the repository:

    git clone https://github.com/hzaheer48/online-shopping-store.git
    cd online-shopping-store
  2. Install dependencies:

    npm install
  3. Set up your MongoDB database and update the connection string in config/db.js.

  4. Start the application:

    node app.js

Usage

  • 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.

Dependencies

  • Node.js
  • Express.js
  • MongoDB
  • EJS
  • Body-parser
  • Express-session
  • Connect-flash

File Structure

  • 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.

Screenshots

Alt text Alt text Alt text Alt text Alt text Alt text Alt text Alt text

Contributing

Feel free to contribute to the project by opening issues or submitting pull requests. Follow the Contributing Guidelines for more details.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published