-Tested on Mac OS X 10.14
-Tested on Ubuntu 18.04.03 with VirtualBox v5.50.20
-Written in Python3.6.8.
- Click on this link and follow instructions for your specific operating system: https://developer.algorand.org/docs/introduction-installing-node
- Create empty parent directory.
- Create Python virtual environment within new parent directory
python3 -m venv venv
- Activate virtual environment
source venv/bin/activate
thencd venv
git clone https://github.com/AlexanderHart/BCeVote.git
cd BCeVote
pip3 install -r requirements.txt
pip3 install py-algorand-sdk
- Set environment variables, APP_MAIL_USERNAME and APP_MAIL_PASSWORD to your email and password, respectfully. Also, these values can be hardcoded in /project/config.py, if desired in line 24 and 25.
- Create bash executable Within project directory:
chmod u+x autoDispense.sh
sudo ./goal node start -d data
sudo ./goal kmd start -d data
2.1 IMPORTANT TO NOTE: Make sure to have at least 1 wallet generated locally to avoid KMD errors.- Update data_dir_path in line 17 at BCeVote/project/params.py to your absoulute path name for your Algorand node location.
- Update /project/petitions/views.py line 39 with the API for PureStake Algorand node.
sudo open /Applications/Python\ 3.6/Install\ Certificates.command
python3 manage.py create_db
python3 manage.py db init
python3 manage.py db migrate
python3 manage.py create_admin
python3 manage.py create_trashbag
python3 manage.py runserver
- Navigate to 127.0.0.1:5000 to demo BCeV.
After a petition is submitted via the form, the admin must manually copy the data record for the appropiate 'master account' attribute from the Petitions SQL table. Following that, the admin directs himself to https://bank.testnet.algorand.network and paste the data into the textfield deposit MicroAlgos into the desired petition.
Credit and acknowledgement goes to GitHub user mjhea0, for his repo https://github.com/mjhea0/flask-basic-registration.git for which we used it for our user registration.