Condensation Forum is a Python 3 web service in EC2 via Elastic Beanstalk.
The deployed web service lives at condensation-forum.us-west-2.elasticbeanstalk.com.
- Install Python 3.6 and PIP 3
- Install virtual environment support:
pip3 install virtualenv --user - Install GNU Make or manually execute the commands in Makefile when needed
- Install Local Instance Prerequisites from above
- Install AWS CLI from AWS wElastic Beanstalkite
- Use
aws configto connect to AWS account and region - Install Elastic Beanstalk CLI:
pip3 install awsebcli --user- Read here for details: https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/eb-cli3-install.html
- Nav your shell to the
condensation-forumfolder - Have an Elastic Beanstalk instance to deploy to. Ex:
condensation-forumis our deployed instance - Init deployment path:
eb init condensation-forum- Choose region
us-west-2which is Oregon - Do not set up CodeCommit, as we use GitHub and our own deploy script
- Choose region
- Before deploying, confirm with group members. Run
eb deploy - Quick deployment command
make deployis set up already - deploying the database is done seperately with th
generate_databasescripts
- In the
condensation-forumfolder, create a local config file calledconfig.local.json
{
"accessKey": "AAAABBBBCCCCDDDDEEEE",
"secretKey": "aaaaaaaabbbbbbbbccccccccddddddddeeeeeeee",
"region": "us-west-2",
"oauthClientId": "000000000000000000000000000000000000000000000.apps.googleusercontent.com",
"oauthClientSecret": "111122223333444455556666",
"sessionSecret": "11aa22bb33cc44dd55ee77hh",
"dbEndpoint": "www.example.com"
"dbUser": "pg_sql",
"dbPassword": "password"
}
- If you have GNU Make, use
make run - If you do not, run
./scripts/run.shorscripts\run.bat - Note: You may need to
chmod u+x run.shbefore you can run in *nix - Note: You should run scripts from the Git root, not from inside the scripts folder
- Access the site at
http://localhost:5000or OAuth redirects won't work
For architectural information, see the project report PDF.
