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: 8 months ago
JSON representation
Nest framework template repository for TypeORM, GraphQL and event subscriptions with PostgreSQL.
- Host: GitHub
- URL: https://github.com/petarvujovic98/nestjs-graphql-template
- Owner: petarvujovic98
- License: mit
- Created: 2020-01-07T18:12:17.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2024-05-16T12:15:34.000Z (over 1 year ago)
- Last Synced: 2025-01-20T11:43:34.804Z (9 months ago)
- Topics: event-sourcing, graphql, graphql-server, nestjs, postgresql, typeorm, typescript
- Language: TypeScript
- Size: 2.43 MB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[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.
## 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ć](petarvujovic98@gmail.com)
## 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).