Skip to content

King-witcher/Magic3T

Repository files navigation

Magic3T Monorepo

Biome CI Migrations

Description

This is the Magic3T monorepo, which includes the backend, the frontend and some shared type libraries.

Tech Stack

Backend

Frontend

Monorepo & Tooling

Projects

  • backend: The backend server built with NestJS.
  • frontend: The frontend application built with React and Vite.
  • migrations: SQL migrations for PostgreSQL schema management. See MIGRATIONS.md.

Running Locally

First off, install dependencies for all projects:

npm install

Backend

  • Navigate to the backend directory.

  • Provide the necessary environment variables by copying the .env.example file to .env and filling in the required values.

Important environment variables:

  • Firebase admin credentials in the FIREBASE_ADMIN_CREDENTIALS environment variable in a base64 encoded JSON format
  • Sentry DSN in SENTRY_DSN (optional for development - if not provided, Sentry will be disabled)
  • To run the backend server locally, navigate to the backend directory and start the server:
npm run start:dev

Frontend

  • Navigate to the frontend directory.

  • Provide the necessary environment variables by copying the .env.example file to .env and filling in the required values.

Important environment variables:

  • Firebase configuration (VITE_FIREBASE_*)
  • API URL (VITE_API_URL)
  • CDN URL (VITE_CDN_URL)
  • Sentry configuration (VITE_SENTRY_DSN, SENTRY_AUTH_TOKEN, etc.) - optional for development
  • To run the frontend application locally, use the following command:
npm run dev

Note: Sentry is only enabled in production builds. During development, no errors or traces will be sent to Sentry.

About

A real-time turn-based game where players exclusively choose numbers from 1 to 9 and wins who first gets 3 that add to 15.

Topics

Resources

Stars

Watchers

Forks

Contributors

Languages