Skip to content

Latest commit

 

History

History
42 lines (26 loc) · 739 Bytes

README.md

File metadata and controls

42 lines (26 loc) · 739 Bytes

Prototype backend using Node, Typescript, Express, Prettier, EsLint, Jest

Global dependencies

node v.12+, Docker (docker-compose)

Installation

npm install

Develop (start server in dev mode, listening to port 8080, automatically rebuilds on code changes)

docker-compose up -d (starts database) npm run dev (starts backend in developer mode)

Dist build

npm run build

Run dist version (on port 8080)

npm run serve

Start database

docker-compose up -d

Linting

npm run lint
npm run lint:watch

Unit testing (coming soon)

npm run test:unit

Integration testing (coming soon)

npm run test:integration

Data endpoints

Products

http://localhost:8080/products

Users

http://localhost:8080/users