Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/yo-mah-ya/backendapp-with-openapiv3-postgresql

BackendApp with OpenAPIV3 PostgreSQL implemented with TypeScript
https://github.com/yo-mah-ya/backendapp-with-openapiv3-postgresql

express openapi3 postgres typescript

Last synced: 23 days ago
JSON representation

BackendApp with OpenAPIV3 PostgreSQL implemented with TypeScript

Awesome Lists containing this project

README

        

# Introductions

install packages and compile all workspace packages

```sh
yarn install
```

The common package is linked as a symbolic link
check it out

```
cd ./node_modules/@backend
ln -s ../../packages/common .
```

# local development

## common

create tables and insert sample data

```
service postgresql start
./resources/common/ddl.sh
```

## api

### build and start or do tests

```
yarn workspace @backend/api build
yarn workspace @backend/api start
yarn workspace @backend/api test
```

### with environment values

```
./resources/api/local_dev.sh compile
./resources/api/local_dev.sh start
./resources/api/local_dev.sh test
```

### add libraries to the entire project

```
yarn add `some package` -W
or
yarn add --dev `some package` -W
```

### OpenAPI docs

open shown below on the Web browser

```
localhost:3000/api-docs/#
```

# Directories

tree -I "node_modules|build"