-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
- Create a private network with
./goal network create -r ~/algodNet -n private -t <path_to_template.json>
NOTICE: We supply the template JSON file (from the Algorand developer page) that can be used in the above step. Locate the file at the following path: /venv/BCeVote/project/privateNetwork.json ./goal network start -r ~/algodNet
./goal kmd start -d ~/algodNet/Primary
- Update data_dir_path in line 17 at BCeVote/project/params.py
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.
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.