A MikroORM boilerplate for GraphQL made with Fastify, Mercurius, Typescript using TypeGraphQL
- Install dependencies via
yarn
- create .env file based on .env.example
DATABASE_HOST=
DATABASE_USER=
DATABASE_NAME=
DATABASE_PASS=
JWT_SECRET=
JWT_REFRESH_SECRET=
COOKIE_SECRET=
- Build /dist via
tsc
oryarn watch
- Run via
yarn start
oryarn dev
- GraphiQL playground is running on localhost:9000/graphiql
you can see mikro-orm cli document for migrations Migrations | using via cli
Vigen
Github: 47vigen
Twitter: @47vigen
Special thanks to Martin Adámek for developing mikro-orm and Dries Croons for mikro-orm-graphql-example and readme file.
Please star the repository if this helped you!
Want to help contribute to this repository?
- Something's not working? Got a question? Create an issue!
- Missing some functionality? Feel free to create a pull request!
- Complete auth
- Create test
- Eventually make it better :)