GregoryInnovo / express-shop

Implementation a Backend to manage shop with

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

express-shop

Implementation a Backend to manage shop with:

  • Clean architecture
  • REST API structure
  • ORM and migrations db
  • Authentication and JWT
  • Docker-compose environment

Requirements

Quick Start

After clone the project, install dependencies:

$ npm install

Create your own environment variables (.env):

//Example:
PORT=3000
DB_USER='example'
DB_PASSWORD='example'
DB_HOST='localhost'
DB_NAME='my_example'
DB_PORT='5432'
DATABASE_URL='postgres://example:example@localhost:5432/my_example'
API_KEY=example
JWT_SECRET=example
EMAIL_USER=example@example.com
EMAIL_PASS=example

Run the main migration to create database structure (make sure have postgres running and in the root folder exist postgres_data to save the volumes of docker-compose):

$ npm run migrations:run

Execute the project in development mode:

$ npm run dev

About

Implementation a Backend to manage shop with


Languages

Language:JavaScript 98.7%Language:HTML 1.0%Language:Shell 0.3%