A very simple Flask web application used by OpenStax researchers to view OpenStax Exercises in a more user friendly way.
The exercice-viewer
is currently deployed at:
https://abtpvg7emg.execute-api.us-east-1.amazonaws.com/dev/<exercise_id>
Replace <exercise_id>
with the exercise id in Exercises.
Example:
https://abtpvg7emg.execute-api.us-east-1.amazonaws.com/dev/12345
You can use Docker to quickly get the application running on your machine.
Follow the instructions on the Docker website.
$ docker-compose up
Note: You'll want to make sure you have your AWS credentials file at
~/.aws/credentials
filled out for deployment userexercise-viewer
The Zappa project is used to package up the application and deploy it to AWS Lambda.
For deployment to AWS Lambda you'll want to run commands locally so the recommended method is to create a virtualenv and install the deploy requirements locally.
$ python3 -m venv .venv
$ source .venv/bin/activate
$ pip install -r requirements-deploy.txt
$ zappa deploy dev