deckforge.io is a service for creating and sharing deck builder games.
- UI: Vite + React + MUI, hosted on Vercel
- API: tRPC + Express, hosted on Vercel Serverless Functions
- DB: Prisma (mysql) + PlanetScale (via auto migrations)
- Tests: Jest (unit) / Cypress (component/e2e) + Testing Library
Before you can start developing there are a few things you need to do:
Create a .env.local
file in the root of the project and add the following:
DATABASE_URL=<connection string to your development mysql database>
Run yarn db:push
to update your development database
Run yarn db:seed
to seed your database
yarn dev
To start the local development serveryarn test:unit
to run unit testscypress open|run
to develop or run e2e tests (needs the local dev server running)yarn lint|lint:fix
to display or fix linting errors
Contributions are welcome! Please open an issue or PR to discuss any changes. PRs will only be merged once they are well tested and pass all checks.