Giter VIP home page Giter VIP logo

mern-ecommerce-shop's Introduction

MERN ECOMMERCE SHOP

In this project, I built a fully functional Ecommerce website, which contains several features such as authentication, upload pictures, admin managament, pagination, PayPal API for handling payment. The website is built from the inside out using MERN stack technology.

Technology: React, Redux, NodeJs, CSS, HTML, JavaScript.

Quick Start ๐Ÿฆœ

Add a .env file in root folder with the following without <> tags

  NODE_ENV = development
  PORT = 5000
  MONGO_URI = <your_mongoDB_Atlas_uri_with_credentials>
  JWT_SECRET = <your_JWT_secret>
  PAYPAL_CLIENT_ID = <your_PayPal_client_ID>

Install server dependencies

npm install

Install frontend dependencies

cd frontend
npm install

Run both Express & React from root

npm run dev

Now you can check the site on http://localhost:3000/


Build for production ๐Ÿš’๐Ÿš’๐Ÿš’

Running a build in the frontend

cd frontend
npm run build

In .env file change

  NODE_ENV = production

Test production before deploy

After running a build in the frontend ๐Ÿ‘†, cd into the root of the project. And run...

Linux/Unix

node server.js

Windows Cmd Prompt or Powershell

node server.js

Check in browser on http://localhost:5000/

Screenshots

screen-shot-1 screen-shot-2 screen-shot-3 screen-shot-4 screen-shot-5

mern-ecommerce-shop's People

Contributors

ascty345 avatar

Stargazers

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