DEV Community

Cover image for GraphQL, TypegraphQL & mikroORM a dreamteam 😍
Andy Broger
Andy Broger

Posted on

GraphQL, TypegraphQL & mikroORM a dreamteam 😍

Hello Folks

I created a minimal Boilerplate Graphql Server with mikroORM v4 and typegraphql for database and schema creation. It also includes a user & role system.

The session management is done inside a psql table (to not include more dependencies like redis).

So please check my repo and leave a star if it is useful.
If you want to contribute, feel free, I'm more than happy with it!

If you want me to write a more detailed post, leave a comment and I'll think about it 😊

GitHub logo andybroger / graphql-server

A minimal boilerplate graphql server with user management/ role system built in. based on express/micro-orm/typegraphql

GraphQL Server

A minimal boilerplate graphql server with user management/ role system built in.

Technologies used:

  • express
  • express-graphql
  • microORM v4
  • typegraphql
  • postgres
  • express-session with psql as session store
  • graphql-playground
  • typescript

Usage

  1. create a .env file
  2. run postgress db: docker-compose up -d
  3. start server: yarn dev

TODO

  • [] implement token expire function
  • [] a lot more i didnt think about it yet.

Improve

If you want improve and submit a PR, i would be more than happy about that. 😁

Resources

MikroORM graphql example




Top comments (0)