https://github.com/deshanadesai/curiosity-experiment
From Curiosity-based- learning to Reward-incentivized- learning
https://github.com/deshanadesai/curiosity-experiment
Last synced: 2 months ago
JSON representation
From Curiosity-based- learning to Reward-incentivized- learning
- Host: GitHub
- URL: https://github.com/deshanadesai/curiosity-experiment
- Owner: deshanadesai
- Created: 2017-02-28T14:17:12.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-07-12T03:26:22.000Z (almost 8 years ago)
- Last Synced: 2025-02-12T15:21:19.627Z (4 months ago)
- Language: HTML
- Homepage:
- Size: 1.02 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### Deploying a Flask application in AWS: An end-to-end tutorial
This is the code that goes along with the detailed writeup here:
https://medium.com/@rodkey/deploying-a-flask-application-on-aws-a72daba6bb80
It's a simple Flask app that writes and reads from a database. It uses Amazon RDS for the database backend, but you can make things even simpler and use a local DB.
To tool around with the app directly, here's a quickstart guide.
Clone this repo to your local machine. In the top level directory, create a virtual environment:
```
$ virtualenv flask-aws
$ source flask-aws/bin/activate
```
Now install the required modules:
```
$ pip install -r requirements.txt
```
To play with the app right away, you can use a local database. Edit ```config.py``` by commenting out the AWS URL and uncomment this line:
```
SQLALCHEMY_DATABASE_URI = 'sqlite:///test.db'
```
Next run:
```
$ python db_create.py
```
And the tables are created. Now you can launch the app:
```
$ python application.py
```
And point your browser to http://0.0.0.0:5000Using the top form, you can write to the database:


Get confirmation:

Using the bottom form, you can see the last 1 to 9 entires of the database in reverse chronological order:
