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 the easy setup guide and ask in Discord if you are stuck at any step.
-OBSOLETE- This is for running your own development environment locally. You can still use this if you'd like by following the old beginner's guide, but the easiest way is now the docker guide linked above.
-
Install node.js, and set the version to
v14.16.0
. -
Install MongoDB and Redis and run them as services. 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
.env
file for the server underUltimafia/.env
, and copy this example file -
Create a
.env
file for the React app underUltimafia/react_main/.env
and 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 start
This 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