# eln1-stats Electrical Age 1.0 Stats Server Source Code ## Project Layout Filesystem: * .aws/config - sets us-east-1 as region * .aws/credentials - uses AWS credentials (`arn:aws:iam::464053648600:user/eln1_stats`) * main.py - Source Code * run.sh - Script to run in Screen * templates/modinfo.json - Modinfo Json (template file) * /etc/nginx/nginx.conf - nginx configuration (simple proxy to unpriv port) Also contained in this repository is the dynamodb policy document for put access to the DB ## Starting the script Log in as the `arch` user (`vadu.pem` key) and then run `sudo su - stat` to become the stats user. ```shell screen -S stats ``` ```shell ./run.sh ``` Exit screen and profit. ## Python Requirements boto3 and flask are required Python libraries.