This is the source code powering BeyondMafia.com, a website built to fill the shoes of EpicMafia.com. Contributions are welcome from anyone.
- Fork the repository
- Make your changes to your forked repository
- Open a pull request to remote
origin/master
- If approved and merged, test your changes on the test server
- 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 "r3ndd" with your github username.
git clone https://github.com/r3ndd/BeyondMafia-Integration.git
-
Install pm2 globally.
npm i -g pm2
-
Install backend node modules.
cd BeyondMafia-Integration npm install
-
Install frontend node modules.
cd react_main npm install
-
Create
.env
file for the server underBeyondMafia-Integration/.env
, and copy this example file -
Create a
.env
file for the React app underBeyondMafia-Integration/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 BeyondMafia-Integration npm start
-
Start the frontend React app
cd react_main npm start