https://github.com/apozzi/next-graphql-typeorm-boilerplate
Tecnologias. GraphQL+ Next.js + JWT (Autenticação) + TypeORM (ORM).
https://github.com/apozzi/next-graphql-typeorm-boilerplate
grapghql jwt nextjs typeorm
Last synced: 7 months ago
JSON representation
Tecnologias. GraphQL+ Next.js + JWT (Autenticação) + TypeORM (ORM).
- Host: GitHub
- URL: https://github.com/apozzi/next-graphql-typeorm-boilerplate
- Owner: Apozzi
- Created: 2021-04-06T07:39:35.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-06-14T00:41:39.000Z (over 4 years ago)
- Last Synced: 2025-01-27T22:54:24.216Z (8 months ago)
- Topics: grapghql, jwt, nextjs, typeorm
- Language: TypeScript
- Homepage:
- Size: 135 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Descrição
[Nest](https://github.com/nestjs/nest) Framework utilizanda nesse projeto.
## Migração de banco
Para criação de scripts para migração do banco de dados é necessario entrar dentro da pasta /migration e utilizar o comando:
$ typeorm migration:create -n {descricao}Para rodar o script de migração, primeiramente deve dar start no servidor para atualizar o dist e após isso:
$ npm run typeorm migration:run## Instalação
```bash
$ npm install
```## Rodando o app
```bash
# development
$ npm run start# watch mode
$ npm run start:dev# production mode
$ npm run start:prod
```## Teste
```bash
# unit tests
$ npm run test# e2e tests
$ npm run test:e2e# test coverage
$ npm run test:cov
```