Reddit clone
A Fastify, MikroORM, TypeGraphQL boilerplate for GraphQL made with Typescript
Inspired by https://github.com/driescroons/mikro-orm-graphql-example
📦 Major Packages
✨ Installation
- Install dependencies via
pnpm
- Create your docker containers via
docker-compose up -d
- Load fixtures
pnpm loadFixtures
- Run via
pnpm start
orpnpm dev
⚡️ Usage
Run with Node
Run the regular start command
Run with ts-node-dev
Run and watch the application in Typescript.
Run with debugger
I've added the launch script for VSCode in the repository. You can start the application by going to the Debug and Run tab and clicking on Debug Application
Migrations
After developing a feature, run the following commands to create a migration from the previous migration schema state:
pnpm mikro-orm schema:drop --run
pnpm mikro-orm migration:up
pnpm mikro-orm migration:create