vkr-first-view

0.0.1 • Public • Published

NestJS REST API template

Description

NestJS REST API template for typical project

Table of Contents

Features

  • [x] Database (typeorm).
  • [x] Seeding (typeorm-seeding).
  • [x] Config Service (@nestjs/config).
  • [x] Sign in and sign up via email.
  • [x] Admin and User roles.
  • [x] File uploads with Amazon S3.
  • [x] Swagger.
  • [x] Docker.
  • [x] GitLab CI

Quick run

git clone --depth 1 https://github.com/khodorkovskyalexey/vkr-first-view.git my-app
cd my-app/
cp env-example .env

Change DB_HOST=127.0.0.1 to DATABASE_HOST=postgres

docker-compose up -d

For check status run

docker-compose logs

Comfortable development

git clone --depth 1 https://github.com/khodorkovskyalexey/vkr-first-view.git my-app
cd my-app/
cp env-example .env

Run additional container:

docker-compose up -d postgres adminer redis
yarn install
yarn migration
yarn seeds
yarn start:dev

Links

Database utils

Generate migration

yarn migration:generate CreatingMigrationName

Run migration

yarn migration

Revert migration

yarn migration:revert

Sync all tables in database

yarn schema:sync

Drop all tables in database

yarn schema:drop

Run seeds

yarn seeds

Stay in touch

Author - Alexey Khodorkovsky

License

MIT license.

Readme

Keywords

none

Package Sidebar

Install

npm i vkr-first-view

Weekly Downloads

1

Version

0.0.1

License

MIT

Unpacked Size

20 kB

Total Files

51

Last publish

Collaborators

  • terminator_79