Simple Rest API designed for a backend challenge
-
OpenAPI
[GET]
/docs -
Customers
[POST]
/customers- Create a new customer
[GET]
/customers- Get all customers
-
Products
[POST]
/products- Create a new product
[GET]
/products- Get all customers
-
Orders
[POST]
/orders- Create a new order
[GET]
/orders- Get all orders
# development
$ yarn dev
# build
$ yarn build
# production mode
$ yarn start
# tests
$ yarn test
# Execute all migrations
$ yarn typeorm migration:run
# Run postgres
$ docker-compose up -d