Skip to content

zachcyrus/Team_7_Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mafia Application


Logo

Mafia Application

Table of Contents
  1. About Mafia
  2. Prerequisites and Installation Guide
  3. Roadmap
  4. Contributors
  5. Acknowledgments

About Mafia

Mafia is a social deduction game, created by Dimitry Davidoff in 1986. The game models a conflict between two groups: an informed minority (the mafia team), and an uninformed majority (the Residents). At the start of the game, each player is secretly assigned a role affiliated with one of these teams. The game has two alternating phases:

Built With

Getting Started

Prerequisites

Local installation:

  1. Git clone this repository.

    git clone https://github.com/zachcyrus/Team_7_Project.git
    
  2. Change directory to the location of the repository.

    cd ./Team_7_Project
    
  3. Change directory to mafia (this is where the application is located).

    cd ./mafia
    
  4. Create a virtual environment (the method for this will change if you're on Windows)

     # For Mac/Linux OS
    python3 -m venv venv
    
    # For Windows OS
    python -m venv venv
    
  5. Activate the virtual environment

    # For Mac/Linux OS
    source ./venv/bin/activate
    
    # For Windows OS
    .\venv\Scripts\activate
    
  6. Install the python dependencies

    pip install -r requirements.txt
    
  7. Run the application

    # For Mac/Linux OS
    python3 ./mafia.py 5
    
    # For Windows OS
    python ./mafia.py 5
    

Docker Installation

  1. Make sure you have Docker installed and running if not go here.

  2. Change directory to root of repository

    cd Team_7_Project
    
  3. Build the docker image based off the dockerfile in the root of the repository

    docker build --build-arg LOGGER_AWS_ACCESS_KEY_ID={your_aws_access_key_kid} --build-arg LOGGER_AWS_ACCESS_KEY_SECRET={your_aws_access_key_secret} -t local_mafia_app:latest . 
    
  4. Run a docker container based off the local_mafia_app image.

    docker run --name  mafia_container -d -p 5000:5000 local_mafia_app:latest
    
  5. Go to localhost:5000 in your browser to see the application running

  6. When done kill the container

    docker kill mafia_container
    

Roadmap

  • Terraform Load balancer
  • Update README
  • Terraform all infrastructure possible
  • Add a database
  • Add multiple rooms feature

Current Contributors

Linkedin BadgeGithub BadgeTwitter

Linkedin BadgeGithub BadgeTwitter

Linkedin BadgeGithub BadgeTwitter

Linkedin BadgeGithub BadgeTwitter