An open API service indexing awesome lists of open source software.

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

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`