Soojin Choi(PM), Emily Lee, Kevin Lin, Angela Tom
Scribbl+ is a multiplayer drawing game. For each round, users would be able to guess the word being drawn or draw one of the three words given to them.
flask_socketio
- Allows our app to run using the features of web sockets
- Real time gameplay between the members of the app To Install:
pip install flask_socketio
- Copy the ssh/https link found here
- Clone the repo by running
$ git clone <link>
- Have the latest version of Python installed (Python 3.7.2)
- Install virtualenv by running
$ pip3 install virtualenv
- Make a venv by running
$ python3 -m venv VENV_NAME
- Activate it by running
$ . ~/path_to_venv/VENV_NAME/bin/activate
- Deactivate it by running
$ deactivate
- Make a venv by running
- Activate your virtual environment
- In the root of the directory, move to the directory named scribble and run
$ pip install -r requirements.txt
- Now you are ready to run the flask app. Run the command
$ python __init__.py
. (Make sure your virtual enviornment is actvated) - Launch the app in your browser (http://127.0.0.1:5000/)
- Copy the https link under Clone and download
- ssh into your droplet through a user using
$ ssh <user>@<ip address>
- Go to the directory /var/www through
$ cd /var/www/
- Clone the repo and name the directory your chosen appname by running
$ sudo git clone https://github.com/Soojin-C/write_illegibly.git scribble
- The tree of the directory should be:
- scribble
- scribble
- scribble.wsgi
- scribble.conf
- scribble
- The tree of the directory should be:
- Move the .conf file to the /etc/apache2/sites-available directory by running the command
$ sudo mv /var/www/scribble/scribble.conf /etc/apache2/sites-available
- Make sure that the ServerName in scribble.conf is set to your droplet ip.
- Make sure there are no other .conf files with the same ip as the one you place into scribble.conf
- Enable your site by running the command
$ sudo a2ensite scribble
- Go into the first directory named scribble and run both
$ sudo chgrp -R www-data scribble
$ sudo chmod -R g+w scribble
- Install virtualenv by running
$ pip3 install virtualenv
- Make a venv by running
$ python3 -m venv VENV_NAME
- Activate it by running
$ . ~/path_to_venv/VENV_NAME/bin/activate
- Deactivate it by running
$ deactivate
- Make a venv by running
- Activate your virtual environment
- Go into the second directory named scribble and run
$ pip install -r requirements.txt
- After running everything above, run
$ sudo service apache2 restart
- Run this anytime you make changes as well
- Go to your ip address to view your app
- If there are any problems, check the error log by running
$ sudo cat /var/log/apache2/error.log