Skip to content

47vigen/fastify-mikro-orm-mercurius-graphql-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fastify-mikro-orm-mercurius-graphql-example

A MikroORM boilerplate for GraphQL made with Fastify, Mercurius, Typescript using TypeGraphQL

📦 Packages


✨ Installation

  1. Install dependencies via yarn
  2. create .env file based on .env.example
DATABASE_HOST=
DATABASE_USER=
DATABASE_NAME=
DATABASE_PASS=

JWT_SECRET=
JWT_REFRESH_SECRET=

COOKIE_SECRET=
  1. Build /dist via tsc or yarn watch
  2. Run via yarn start or yarn dev
  3. GraphiQL playground is running on localhost:9000/graphiql

⚡️ Usage

Migrations

you can see mikro-orm cli document for migrations Migrations | using via cli


🐍 Author

Vigen Github: 47vigen
Twitter: @47vigen


📢 Shoutouts

Special thanks to Martin Adámek for developing mikro-orm and Dries Croons for mikro-orm-graphql-example and readme file.


⭐️ Support

Please star the repository if this helped you!


⛑️ Contribution

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!

🚧 Todo

  • Complete auth
  • Create test
  • Eventually make it better :)

About

just a graphql example created by typescript + fastify + mikro-orm(postgresql) + mercurius(graphql adaptor) + type-graphql

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published