Coder Social home page Coder Social logo

47vigen / fastify-mikro-orm-mercurius-graphql-example Goto Github PK

View Code? Open in Web Editor NEW
11.0 1.0 0.0 129 KB

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

Home Page: https://venins.ir/graphiql

Shell 0.57% TypeScript 99.43%
fastify mercurius mikro-orm postgresql argon2 graphql jsonwebtoken redis type-graphql uuid

fastify-mikro-orm-mercurius-graphql-example's Introduction

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 :)

fastify-mikro-orm-mercurius-graphql-example's People

Contributors

47vigen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.