Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tomfun/inteyvat
https://github.com/tomfun/inteyvat
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/tomfun/inteyvat
- Owner: tomfun
- Created: 2023-04-01T10:28:22.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-04-04T20:31:56.000Z (almost 2 years ago)
- Last Synced: 2024-04-18T03:01:02.906Z (9 months ago)
- Language: TypeScript
- Size: 164 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Description
[Nest](https://github.com/nestjs/nest) framework TypeScript starter repository.
## Config
create `.env` file with credentials, docker compose take it
```bash
docker compose up
```## Installation
```bash
docker compose run api npm i
# or
npm install
```## Migrations
```bash
# Via npx with ts-node compilation on fly
docker compose run api \
npx typeorm-ts-node-commonjs \
migration:run \
-d ts/src/pg.data-source.ts
# OR short
docker compose run api \
npm run typeorm:migration:run
``````bash
# open PostgreSQL
docker compose exec -it postgres psql postgres --username=inteyvat
```## Fixtures
https://github.com/RobinCK/typeorm-fixtures
```bash
docker compose run api \
npm run fixtures
```## Running the app
```bash
# development
$ npm run start# watch mode
$ npm run start:dev# docker
# see config notes ^
docker compose up api# production mode
$ npm run start:prod
```## Test
```bash
# unit tests
$ npm run test# e2e tests
$ npm run test:e2e# test coverage
$ npm run test:cov# docker
docker compose run api \
npm run
# docker test:e2e
docker compose run api \
npm run test:e2e
```