Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/hugocruzlfc/nestjs-postgres-mikroorm-realword-example-api

Real example api with Nestjs, Postgres, Mikro-ORM.
https://github.com/hugocruzlfc/nestjs-postgres-mikroorm-realword-example-api

api-rest mikro-orm nestjs postgres

Last synced: about 12 hours ago
JSON representation

Real example api with Nestjs, Postgres, Mikro-ORM.

Awesome Lists containing this project

README

        


Nest Logo

[circleci-image]: https://img.shields.io/circleci/build/github/nestjs/nest/master?token=abc123def456
[circleci-url]: https://circleci.com/gh/nestjs/nest

A progressive Node.js framework for building efficient and scalable server-side applications.

## Description

[Nest](https://github.com/nestjs/nest) framework TypeScript starter repository.

## Installation

```bash
$ yarn install
```

## Configurations

```bash
Update .env file
npx mikro-orm migration:create --initial # generates the migration file
npx mikro-orm seeder:create DatabaseSeeder # generates the class DatabaseSeeder
npx mikro-orm seeder:run # runs the seeders
```

## Running the app

```bash
# development
$ yarn run start

# watch mode
$ yarn run start:dev

# production mode
$ yarn run start:prod
```

## Test

```bash
# unit tests
$ yarn run test

# e2e tests
$ yarn run test:e2e

# test coverage
$ yarn run test:cov
```