Git Product home page Git Product logo

shagun25 / ecommerce-website Goto Github PK

View Code? Open in Web Editor NEW

This project forked from knightwayne/ecommerce-website

0.0 0.0 0.0 1.13 MB

An E-Commerce Web Application developed using Node.js, Express, MongoDB and Handlebars templating engine, modelled on MVC architecture pattern to separate data-models from business logic(controllers) and views.

Home Page: https://shoppingcart-deploy.herokuapp.com/

JavaScript 53.58% CSS 10.54% EJS 35.88%

ecommerce-website's Introduction

E-Commerce Web Application

  • An E-Commerce Web Application developed using Node.js, Express, MongoDB and Handlebars templating engine, modelled on MVC architecture pattern to separate data-models from business logic(controllers) and views.
  • Website Hosted at: https://shoppingcart-deploy.herokuapp.com/ (hosted using Heroku Platform)
  • Features: Browse Products added by Different Users, Signup/Login to Add Products to Cart or Order Products & Add or Edit your Own Products.

Tech-Stack

Main web-frameworks and libraries:

  • Node.js: Server-side JavaScript execution environment to produce dynamic web pages and service requests.
  • Express.js: The de facto standard web application framework for Node.js to build web applications including this one.
  • MongoDB(& mongoose.js): NoSQL database, which serves as the database for this tech stack, for storing and retrieving data(CRUD opreations).
  • Handlebars.js(& Bootstrap): Templating engine to produce client-side generated dynamic web pages, used to separate UI(view) from logic(model and controller)
  • Express Messages, Session, Connect Flash & Validation
  • Passport.js Authentication
  • BCrypt Hashing

How to Host the E-Commerce Website locally on your system

1. Cloning the repository & Installing Required Files

Download and Install node.js and npm. Clone the repository & Install the dependencies using command-line.

git clone https://github.com/knightwayne/Ecommerce-Website.git
npm install

2. Starting the Server

Start Node.js server using npm, the server starts processing request at http://localhost:3000 .

npm start

3. Stopping the Server

Find the process ID and kill the process to stop the node server.

ps aux | grep node
kill -9 PROCESS_ID

Improvements & Known Bugs

  • Image URL shows absolute path(instead of relative path) when product is edited by admin.
  • Invoice Not Generated properly
  • Authentication & Authorization
  • Handling Payments with Stripe.js or other similar framework

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.