Skip to content

MJdiop/storefront-backend

Repository files navigation

Storefront backend

Installation

$ yarn

Running the app

# development
$ yarn start:dev

# prettier
$ yarn format

# linter
$ yarn lint

# production mode
$  yarn start

Our server is listen at port:

localhost:3001

and our database listen at port:

localhost:5432

API Endpoints

Users

Products

Orders

Test

# unit tests
$ yarn test

Database migrations

If there is any database chanes you could access the migrations and edit the SQL files then use the following commands:

npx db-migrate down
npx db-migrate up

ENV Variables:

PORT
POSTGRES_HOST
POSTGRES_DB
POSTGRES_USER
POSTGRES_PASSWORD
POSTGRES_PORT
BCRYPT_PASSWORD
SALT_ROUNDS
TOKEN_SECRET

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published