https://github.com/junzhli/product-order-api-service
Product with order management api service
https://github.com/junzhli/product-order-api-service
expressjs ioc-container jest nestjs nodejs postgresql sequelize
Last synced: 4 days ago
JSON representation
Product with order management api service
- Host: GitHub
- URL: https://github.com/junzhli/product-order-api-service
- Owner: junzhli
- Created: 2023-12-13T01:37:49.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-12-13T01:51:48.000Z (over 2 years ago)
- Last Synced: 2023-12-13T02:44:20.283Z (over 2 years ago)
- Topics: expressjs, ioc-container, jest, nestjs, nodejs, postgresql, sequelize
- Language: TypeScript
- Homepage:
- Size: 153 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Product order api service
With techstack `Nestj.js` as IoC featured web framework and `Postgres` as the underlying data persistence solution
## Prerequisites
- Node.js 18.x `node`
- `yarn`
- `npx`
- Postgres
### Running database locally with docker
To run locally
```shell
$ docker-compose -d up
```
## Installation
```bash
$ yarn install
```
## Set up database
```bash
$ npx sequelize-cli db:migrate
```
## Running the app
```bash
# development
$ yarn run start
# watch mode
$ yarn run start:dev
# production mode
$ yarn run start:prod
```
## Swagger api
Go to `http://localhost:3000/api`