Giter Site home page Giter Site logo

zabihullah-azadzoi / ecommerce-mern Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 2.62 MB

a full ecommerce project made with MERN stack

Home Page: https://mern-ecommerce-84.herokuapp.com

JavaScript 97.51% HTML 0.80% CSS 1.68% Procfile 0.02%
ecommerce express mern nodejs mern-stack

ecommerce-mern's Introduction

MERN Ecommerce

Description

An ecommerce store built with MERN stack, and utilizes third party API's. This ecommerce store enable two main different flows or implementations:

  1. Buyers browse the store categories, products and brands
  2. Admins manage and control the entire store components
  • features:
    • Node provides the backend environment for this application
    • Express middleware is used to handle requests, routes
    • Mongoose schemas to model the application data
    • React for displaying UI components
    • Redux to manage application's state
    • cloudinary used for storing images in the cloud
    • firebase used for authentication
    • Stripe used as payment gitway

Demo

This application is deployed on Heroku. Please check it out ๐Ÿ˜„ here.

Setup

 Create .env file in client that includes:

  * REACT_APP_REGISTRATION_REDIRECT_URL="http://localhost:3000/register/complete"
  * REACT_APP_RESET_PASSWORD_REDIRECT_URL="http://localhost:3000/login"
  * REACT_APP_STRIPE_SECRET
  * REACT_APP_API_URL=REACT_APP_API_URL="http://localhost:8000"

 Create .env file in server that includes:

  * DATABASE_URL
  * CLOUDINARY_CLOUD_NAME
  * CLOUDINARY_API_KEY
  * CLOUDINARY_API_SECRET
  * STRIPE_SECRET
 
 create a folder named config in server directory and add a file named fbServiceAccountKey.json inside it, copy your private_key from your firebase     account and paste it in fbServiceAccountKey.json and must have the following structure
  * "type":
  * "project_id":
  * "private_key_id":
  * "private_key":
  * "client_email":
  * "client_id":
  * "auth_uri":
  * "token_uri":
  * "auth_provide_x509_cert_url":
  * "client_x509J_cert_url":
  

Start development in both server and client

$ npm run start

Simple build for production in client

$ npm run build

Languages & tools

ecommerce-mern's People

Contributors

zabihullah-azadzoi 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.