This is the source code powering UltiMafia.com, a website built to provide online chat mafia to all.
- Fork the repository
- Make your changes to your forked repository
- Open a pull request on the master branch of this repository
- Perform a final test on the main site after merge into master
If you are a beginner, please follow this beginner guide and ask in Discord if you are stuck at any step.
-
Install node.js, and set the version to
v14.15.1. -
Install MongoDB and Redis and run them as services. If using Windows, install Memurai instead of Redis. You can refer to this guide for setting up MongoDB and Redis via docker.
-
Clone your forked repository. Replace "UltiMafia" with your github username.
git clone https://github.com/UltiMafia/Ultimafia.git- Install pm2 globally.
npm i -g pm2- Install backend node modules.
cd Ultimafia
npm install- Install frontend node modules.
cd react_main
npm install-
Create
.envfile for the server underUltimafia/.env, and copy this example file -
Create a
.envfile for the React app underUltimafia/react_main/.envand copy this example file -
Refer to this guide for retrieving your own test API keys for Firebase and reCAPTCHA.
- Start the backend server
cd Ultimafia
npm start- Start the frontend React app
cd react_main
npm startThis site is based on the code provided by r3ndd from this repository and is used under the Creative Commons license (Attribution-NonCommercial-ShareAlike 4.0 International). It has been changed and is not affiliated with the creator or the website that uses the original repository's code.
Music is by Fred, check out his youtube @fredthemontymole