Coder Social home page Coder Social logo

tiendung8a6 / online-shopping-mern-stack Goto Github PK

View Code? Open in Web Editor NEW
23.0 1.0 8.0 1.23 MB

This MERN Stack E-Commerce website is a university project that explores MongoDB, APIs with Express.js, and interactive UIs with React.js. ๐Ÿš€๐Ÿ’ป๐Ÿ“

HTML 3.78% CSS 4.16% JavaScript 92.06%
expressjs mongodb nodejs reactjs e-commerce mern-stack online-shopping mern-ecommerce

online-shopping-mern-stack's Introduction

Online Shopping - MERN Stack

Introduction

Welcome to the README for the Online Shopping project built using the MERN Stack. This is not a real e-commerce website but rather an educational project for learning and practicing technologies and skills related to the MERN Stack.

MERN Stack Overview

The MERN stack is a free and open-source JavaScript software stack for building dynamic web sites and web applications which has the following components:

  • M: MongoDB - the standard NoSQL database.
  • E: Express.js - the default web applications framework for building RESTful APIs.
  • R: React.js - the JavaScript library used for building UI components.
  • N: Node.js - the cross-platform, open-source server environment that can run on Windows, Linux, Unix, macOS, and more...

By combining these technologies, we can efficiently build single-page web applications with fast performance and smooth user experiences.

picture mern stack

Project Objectives

The main objective of the Online Shopping project is to create a web application that allows users to view product listings, add products to the cart, and simulate the checkout process. This project will help us practice and gain a deeper understanding of the following aspects:

  • Building a MongoDB database to store product information and orders.
  • Using Express.js to create APIs for interacting with the database.
  • Creating interactive user interfaces using React.
  • Handling user registration, login, and account management.
  • Integrating shopping cart and payment functionalities.

Getting Started

If you want to run this project on your computer, follow these steps:

1. Clone the repository from GitHub:

git clone https://github.com/tiendung8a6/Online-Shopping-MERN-Stack.git

2. Install dependencies:

cd server
npm install
cd client-admin
npm install
cd client-customer
npm install

3. Configure the MongoDB database:

Ensure you have MongoDB installed and running on your computer, and update the connection URL in the server/utils/MyConstants.js file.

4. Run the application:

cd server
npm start
cd client-admin
npm start
cd client-customer
npm start

Directory Structure

The project directory includes the following folders:

  • client-admin: Contains the client-side source code for the admin interface built with React.js.
  • client-customer: Contains the client-side source code for the customer interface built with React.js.
  • resources: Holds various project resources.
    • images: Contains images used in the project.
    • mongodb: Contains JSON files that can be imported into the MongoDB database.
    • postman: Contains the API collection for Postman, facilitating API testing and documentation.
  • server: Holds the server-side source code built with Node.js and Express.js.

How to Use

After accessing the website, you can register, log in, view the product list, add products to the cart and simulate the checkout process. If you want to manage customer accounts, manage products, manage categories, manage orders, then you can login to the admin page.

Main Technologies Used

  • Front-end: React.js, HTML, CSS, JavaScript
  • Back-end: Node.js, Express.js, MongoDB
  • Package and Tool Management: npm, Git

References

Author

online-shopping-mern-stack's People

Contributors

tiendung8a6 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

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.