Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/petarvujovic98/nestjs-graphql-template

Nest framework template repository for TypeORM, GraphQL and event subscriptions with PostgreSQL.
https://github.com/petarvujovic98/nestjs-graphql-template

event-sourcing graphql graphql-server nestjs postgresql typeorm typescript

Last synced: about 1 month ago
JSON representation

Nest framework template repository for TypeORM, GraphQL and event subscriptions with PostgreSQL.

Awesome Lists containing this project

README

        


Nest Logo

[travis-image]: https://api.travis-ci.org/nestjs/nest.svg?branch=master
[travis-url]: https://travis-ci.org/nestjs/nest
[linux-image]: https://img.shields.io/travis/nestjs/nest/master.svg?label=linux
[linux-url]: https://travis-ci.org/nestjs/nest

A progressive Node.js framework for building efficient and scalable server-side applications, heavily inspired by Angular.



NPM Version
Package License
NPM Downloads
Travis
Linux
Coverage
Gitter
Backers on Open Collective
Sponsors on Open Collective



## Description

[Nest](https://github.com/nestjs/nest) framework template repository for [TypeORM](https://typeorm.io/), [GraphQL](https://graphql.org/) using [PostgreSQL](https://www.postgresql.org/download/).

## Installation

```bash
$ yarn
```

or

```bash
$ npm install
```

## Building the app

```bash
# build
$ yarn build

# hot build
$ yarn build:hot

# build docker image
$ yarn build:image
```

## Running the app

```bash
# development
$ yarn start

# hot reload
$ yarn start:hot

# watch mode
$ yarn start:dev

# production mode
$ yarn start:prod

# docker dev mode
$ yarn compose:dev

# docker production build mode
$ yarn compose:prod
```

## Test

```bash
# unit tests
$ yarn test

# e2e tests
$ yarn test:e2e

# test coverage
$ yarn test:cov
```

## Database

```bash
# use typeorm cli
$ yarn typeorm

# generate migrations
$ yarn db:gen

# create empty migrations
$ yarn db:create

# run migrations
$ yarn db:migrate

# run seeders
$ yarn seed
```

## Code factoring

```bash
# run prettier
$ yarn format

# run eslint
$ yarn lint

# run eslint and prettier
$ yarn fix
```

# Template

## Stay in touch

- Author - [Petar Vujović]([email protected])

## License

This template is [MIT licensed](LICENSE).

# Nest

## Support

Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please [read more here](https://docs.nestjs.com/support).

## Stay in touch

- Author - [Kamil Myśliwiec](https://kamilmysliwiec.com)
- Website - [https://nestjs.com](https://nestjs.com/)
- Twitter - [@nestframework](https://twitter.com/nestframework)

## License

Nest is [MIT licensed](https://github.com/nestjs/nest/blob/master/LICENSE).