Git Product home page Git Product logo

eshop-backend's Introduction

E-shop backend

The repository contains backend code for eshop / e-commerce application. Frontend code can be found here.

This application contains all the routes which is used by admin app as well as client app.

Frontend of the client facing app

Eshop Frontend

Frontend of the admin facing app

Eshop Admin Frontend

Features:

  • Admin
    • View data such as orders, products, total sales etc... on the dashboard
    • list / add / update / delete products
    • list / add / update / delete categories
    • list orders and update order status
  • User
    • Login into application
    • View products
    • View categories
    • Filter products by category
    • Add products to cart
    • Update product quantity of cart
    • Place order
    • Do online payment using stripe

Technology used:

  • NodeJS (Runtime)
  • Javascript (Language)
  • Express (REST API)
  • Stripe (Payment Gateway)
  • Mongodb (Database)
  • Mongoose (ODM)
  • Multer (file upload)
  • Bcrypt (Password encryption)
  • JWT (Authentication and Authorization)
  • Mongo Express (database tool)

API documentation can be found in APIs.http file.

Steps to run the project

  1. Install Docker with Compose
  2. Clone project
  3. Copy .env-example and paste as .env and update env variables
  4. Run docker compose up -d
  5. Add first admin use manually using mongo express at http://localhost:8081/db/eshop/users

DB Seed

  1. Run project
  2. Visit http://localhost:8081/db/eshop
  3. Import backup json files to respective collections
  4. Copy uploads directory from backup to public directory
  5. Verify the changes

eshop-backend's People

Contributors

jaytailor45 avatar

Watchers

 avatar

eshop-backend's Issues

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.