Skip to content

90pixel/nest-typeorm-graphql-jest

 
 

Repository files navigation

Starter - NestJS + TypeORM + GraphQL + Jest + JWT

Simple GraphQL API with NestJS in Back-end.

DeepScan grade Contributors License


Functional Requirements

  • New recipes can be created
  • Recipe, Recipes can be listed
  • Recipe can be deleted
  • Graphql can be testing
  • Graphql Query must have pagination
  • User, Users can be listed
  • User can be logged (JWT Token) with username and password
  • User have RefreshToken
  • User have User Role (https://docs.nestjs.com/graphql/extensions)
  • Soft Delete
  • Translatable Entity
  • Remove orphaned entities from a relation (typeorm/typeorm#6382)
  • When create a new recipe, that should be kept whom (Recipe -> User Relations)
  • API Exception Structures
  • Batch Actions
  • DataLoader integration

Non-functional Requirements

  • Nest.js
  • GraphQL
  • TypeORM
  • Jest

What can be better?

  • Automatic Testing for GraphQL APIs
  • Maybe can running PostgreSQL

Dependencies

Getting started

  1. Clone this repository;
  2. Run npm or yarn install at each project in order to install dependencies.
  3. Run yarn start:dev for back-end and yarn start for front-end folder.
  4. Access localhost:3000 in your browser. GraphQL playground: localhost:3333/graphql.

Testing

Run npm run test:e2e and watch

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests.

About

Starter - NestJS + TypeORM + GraphQL + Jest + JWT

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • TypeScript 98.7%
  • JavaScript 1.3%