Skip to content

KappaThetaTau/tt-voting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

  1. Install Redis
wget http://download.redis.io/redis-stable.tar.gz
tar xvzf redis-stable.tar.gz
cd redis-stable
make
  1. Install Python
brew install python
  1. Install virtualenv
pip install virtualenv
  1. Clone repo
git clone https://github.com/KappaThetaTau/tt-voting.git
  1. Create virtual environment, activate it, and install python requirements
cd tt-voting
virtualenv .venv
source .venv/bin/activate
pip install -r requirements.txt
  1. Start the application
python app.py
  1. In another terminal, start redis
redis-server
  1. Confirm it works by navigating to http://localhost:5000/admin for admin page and http://localhost:5000 for voting. Click yes or no and see the votes change on http://localhost:5000/admin
  2. In another terminal, expose the localhost remotely using localxpose. When you run this application for the first time you will be stopped because you are starting an app from an unidentified developer. Go to system preferences and open this app anyway. Then come back to your terminal and run the command again.
./loclx-darwin-amd64 tunnel http --to 127.0.0.1:5000
# You should see something like this
✓ Creating HTTP tunnel...

Tunneling http://4qhxgb4rxn0o.loclx.io --> 127.0.0.1:8080
Tunneling https://4qhxgb4rxn0o.loclx.io --> 127.0.0.1:8080
  1. You should now have 3 terminals open. One for localxpose, app.py, and redis-server. Test the url by opening it in a browser. If it works, then simply share this URL to the brothers! Done!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published