Giter Site home page Giter Site logo

pikulet / beyondmaf Goto Github PK

View Code? Open in Web Editor NEW

This project forked from beyondmafia/beyondmafia-integration

0.0 0.0 0.0 53.63 MB

real-time chat-based mafia engine

License: Other

Shell 0.04% JavaScript 94.42% CSS 5.29% HTML 0.25%
fullstack mafia-game reactjs

beyondmaf's Introduction

BeyondMafia

This is the source code powering BeyondMafia.com, a website built to fill the shoes of EpicMafia.com. Contributions are welcome from anyone.

Contributing

  1. Fork the repository
  2. Make your changes to your forked repository
  3. Open a pull request on the dev branch of this repository
  4. If approved and merged, test your changes on https://test.beyondmafia.com
  5. Dev will be merged into master after changes are tested
  6. Perform a final test on the main site after merge into master

Running the site locally

If you are a beginner, please follow this beginner guide and ask in Discord if you are stuck at any step.

Prerequisites

  1. Install node.js, and set the version to v14.15.1.

  2. 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.

  3. Clone your forked repository. Replace "r3ndd" with your github username.

git clone https://github.com/r3ndd/BeyondMafia-Integration.git

Install node modules

  1. Install pm2 globally.
npm i -g pm2
  1. Install backend node modules.
cd BeyondMafia-Integration 
npm install
  1. Install frontend node modules.
cd react_main
npm install

Setup environment variables

  1. Create .env file for the server under BeyondMafia-Integration/.env, and copy this example file

  2. Create a .env file for the React app under BeyondMafia-Integration/react_main/.env and copy this example file

  3. Refer to this guide for retrieving your own test API keys for Firebase and reCAPTCHA.

Start the site

  1. Start the backend server
cd BeyondMafia-Integration 
npm start
  1. Start the frontend React app
cd react_main
npm start

Role and game creation

beyondmaf's People

Contributors

1bhavyasingh1 avatar ammico avatar caitelatte avatar chaoticneutralgnome avatar drafterman avatar drsharky avatar fsalker avatar gameshowmaster avatar gferreiros avatar kaiakaua avatar kaltzisp avatar leepichbm avatar milkshakesatdawn avatar patakig2000 avatar pikulet avatar plokky avatar r3ndd avatar r9h9 avatar raptor-07 avatar shwartz99 avatar starryburst avatar tenloh avatar thebeepich avatar udassi-pawan avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.