Flask application to gather data generated by the ChupaCarBrah client
Run the following commands to get ChupaCarBrah Server application deployed to AWS Beanstalk. A complete tutorial for building the ChupaCarBrah device and deploying this server application to AWS can be found here.
~$ git clone https://github.com/blupants/chupacarbrah_server.git
~$ cd chupacarbrah_server
~$ cp chupacarbrah_server.py application.py
~$ source virt/bin/activate
(virt) ~$ pip install flask==1.0.2
(virt) ~$ pip freeze > requirements.txt
(virt) ~$ deactivate
~$ python3 -m pip install awscli
~$ python3 -m pip install awsebcli
~$ eb init -p python-3.6 flask-chupacarbrah --region us-east-2
~$ $ eb init
Do you want to set up SSH for your instances? (y/n): ySelect a keypair. 1) my-keypair 2) [ Create new KeyPair ]
~$ eb create chupacarbrah-env
~$ eb open