GithubHelp home page GithubHelp logo

saymow / e-commerce-2.0 Goto Github PK

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

πŸ”₯ An E-commerce with payment integration, admin panel and automated tests.

TypeScript 98.05% JavaScript 1.51% HTML 0.42% CSS 0.02%

e-commerce-2.0's Introduction

πŸ”₯ E-commerce 2.0 πŸ”₯

πŸ“‹ About:

Β Β Β Β An improvement of E-commerce 1.0. An e-commerce implementation with payment integration, admin panel, automated tests.


Shop flow

shop-flux.cy.ts.1.mp4

Admin flow

flux.cy.ts.mp4

Integration tests

The tests are most on the heavy logic, such as checkout and payments. Light logics are not covered by automated tests.


πŸš€ Technologies:

Frontend

Frontend admin panel

Backend

Integrations

Database

πŸ“‹ How to use?

# Ensure all dependencies are in the following version: 
NodeJS: v14.21.3
PosgreSQL: v16.1
Redis: v7.2.4

# Clone this repositoy
$ git clone https://github.com/saymow/e-commerce-2.0.git

# Change into its directory
$ cd eCommerce-1.0

# INSTRUCTIONS TO RUN BACKEND AND ADMIN PANEL:

# Change directory to backend.
$ cd ./backend

# For all files ending with ".template.env", create a file ".env" and fill alt environemnts variables.
# Example:
$ cp test.template.env test.env 

# Run this command

# Install dependencies
$ npm install

# Change directory to admin-panel
$ cd ./admin-planel

# For all files ending with ".template.env", create a file ".env" and fill alt environemnts variables.
# Obs: typeorm.test.template.env is inteended to store the credentials for the database using during tests
# Example:
$ cp test.template.env test.env 

# Install dependenceis
$ npm install

# Change directory back to backend
$ cd ..

# Run all database migrations
$ npm run typeorm migrations:run

# Run backend, admin-panel and queue worker (This runs 3 scripts, one for each process)
$ npm run dev 

# (Optinal) in another terminal window, run integration tests
$ npm run test

# INSTRUCTIONS TO RUN FRONTEND:

# Change directory to frontend.
$ cd ./frontend

# Install dependencies
$ npm install

# Run this command
$ npm run dev

# (Optinal) in another terminal window, run e2e tests (checkout cypress installation if needed)
$ npm run cypress:start

e-commerce-2.0's People

Contributors

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