项目作者: rodrigoenzohernandez

项目描述 :
ecommerce
高级语言: JavaScript
项目地址: git://github.com/rodrigoenzohernandez/ecommerce.git
创建时间: 2021-03-09T14:29:14Z
项目社区:https://github.com/rodrigoenzohernandez/ecommerce

开源协议:

下载


ecommerce

Is an ecommerce for a hardware store. It has the next modules:

  • Log In
  • Log Out
  • User’s CRUD
  • Product’s CRUD
  • Cart’s CRUD (Add items to cart, modify quantity, delete items from cart)
  • Confirm purchase
  • List of products by category
  • Product detal
  • User profile

Get started 🚀

Follow this instructions to locally deploy the project

Preconditions 📋

Installation 🔧

Clone the repo

  1. git clone https://github.com/rodrigoenzohernandez/ecommerce.git

Navigate to project directory

  1. cd ecommerce

Create files to set the enviroment variables

api.env

No variables yet

db.env

  1. MYSQL_DATABASE=ecommerce_database
  2. MYSQL_ROOT_PASSWORD=any-password-you-want
  3. PMA_HOST_db

Local deploy

  1. docker-compose up

Create and populate database with basic information

  1. POST http://localhost:3000/api/setup

Create a user (The first user will have admin role, the rest of the users will have the client role)

  1. http://localhost:3000/register

Endpoints

/api/setup

If it doesn’t exist, creates the database tables and populates them with basic test data.

Build with 🛠️