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 😊
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
- create a .env file
- run postgress db:
docker-compose up -d
- 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.
Top comments (0)