MMK is a turn-based online multiplayer game with gacha features.
To host MMK, you must have the following backend services running on a server:
- Supabase, an open-source PostgreSQL development platform.
Important
You must set up your Supabase project in a specific way for MMK to work properly. See the Supabase Setup section to learn more.
- MMK Panel, the official Django-based administration panel for MMK.
To reproduce MMK's official Supabase setup, do the following:
- Import the schema to instantly configure your PostgreSQL server.
- In the schema, find the query that creates the trigger
trigger_matchmakingand replace the following placeholders:YOUR_SUPABASE_URLwith your Supabase instance URL andYOUR_ANON_KEYwith your anon key. - Add the cron jobs to your project.
- Finally, deploy the necessary edge functions into your Supabase dashboard.
Create a .env file with the following content:
NUXT_PUBLIC_SUPABASE_URL=
NUXT_PUBLIC_SUPABASE_KEY=
NUXT_PUBLIC_AUTH_EMAIL_DOMAIN=mmk
NUXT_PUBLIC_MMK_PANEL_API=
NUXT_SUPABASE_SECRET_KEY=
Then, fill in the details with the data obtained from your server.
Note
NUXT_PUBLIC_AUTH_EMAIL_DOMAIN can be set to mostly any alphanumerical string; it is used as the "domain" part of the fake email submitted to Supabase Auth when a user registers an account (e.g., "example@mmk"). Additionally, the key NUXT_PUBLIC_MMK_PANEL_API is the API endpoint URL that can be used to retrieve data from your MMK Django server.
To run MMK on a development server, follow the instructions:
- Install dependencies:
# npm
npm install
# pnpm
pnpm install
# yarn
yarn install
# bun
bun install- Start the development server on
http://localhost:3000:
# npm
npm run dev
# pnpm
pnpm dev
# yarn
yarn dev
# bun
bun run devNow, the development server should be running. You can freely modify the code and deploy it as you wish, as long as you follow the guidelines outlined in the license.
To report an issue or bug, visit MMK's issue tracker on GitHub.
You can contribute by adding translations for strings in the application. See TRANSLATING.md for more information.
To push your features or fixes into this official repository:
- Fork the repository.
- Create a feature branch (
git checkout -b feature/my-feature) or a fix branch (git checkout -b fix/my-fix). - Commit your changes (
git commit -m "feat: add new feature"). Please follow the Conventional Commits guideline when doing so! - Push the branch (
git push origin feature/my-feature). - Open a pull request with
contribas the base branch. Make sure to create a detailed title and description of your change.
Please follow the GitHub flow when submitting a pull request.
MMK is free software distributed under the GNU General Public License, version 3.0 or later (GPL-3.0+).
You are free to use, modify, and share the software under the terms of the GPL. For full details, see the GNU General Public License v3.0.