GithubHelp home page GithubHelp logo

ecommerce-2020's Introduction

Ecommerce-2020

This repository contains the code for a MERN based e-commerce webapp:

Prerequisites:

  • Install Mongodb & Robo3T
  • Install React

For the backend:

To get deeper insight of the Backend of our Project Ecommerce have a look at the following steps:

  • Download the code folder from GitHub
  • Create a .env file inside the backend folder having two variables - DATABASE & SECRET. Additionally, you can add "PORT" as well if you want to connect DB at some other port.
  • Open cmd and go to the backend folder directory and run the "npm install" command
  • Go to PowerShell and run command "mongod"
  • Then "npm run". Below will appear on command prompt:

new

We'll see that the backend server is running at localhost:8000.

For testing in postman:

For the frontend:

  • Firstly, go to Robo3T and connect to localhost:27017

22

  • Now, open the command prompt for the frontend folder and run "npm install"
  • Now, run "npm start"
  • This will automatically start the deployment server Below screen will show up automatically:

deployment

  • Click on the little arrow button in right corner
  • Now, if not already registered then click on sign up and enter dummy details.
  • Now, open Robo3T, on the left bar click on books and then on users as shown below:

33

  • Edit and change the highlighted row's value i.e. "role" : 1. Since "1" is for admin.

44

  • Now, go to deployment and sign in and below screen will show up. Here you can add things to the cart, create categories, delete them etc.

6

ecommerce-2020's People

Contributors

sg7801 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

ecommerce-2020's Issues

Add Readme

Hey!
It will be really great if you could add readme. This way it will become easier to refer and understand this repository!
Also adding description in about section would be great!
Thanks!

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.