Skip to content

Commit

Permalink
Updated readme instructions and wording
Browse files Browse the repository at this point in the history
  • Loading branch information
glitchybunny committed Jul 19, 2019
1 parent 5aa32e3 commit ed60ef2
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
Simple webapp to upload images to archive.org when internet is available, initially made for [dwebcamp 2019](https://dwebcamp.org/)!

# How to set up the local webapp
## How to set up the web app
1. You'll need to generate some API keys for IAS3, which can be done here: [https://archive.org/account/s3.php](https://archive.org/account/s3.php)
2. You'll also need to generate a secret key for flask. Some simple instructions can found here: [https://stackoverflow.com/a/34903502](https://stackoverflow.com/a/34903502)
3. Create some environment variables with the respective API keys, name them IAS3_ACCESS_KEY, IAS3_SECRET_KEY and FLASK_SECRET_KEY.
4. Once all that is done, it should be as simple as running **app.py**.
3. Create some environment variables with the respective API keys, name them IAS3_ACCESS_KEY, IAS3_SECRET_KEY and FLASK_SECRET_KEY
5. Once all that is done, it should be as simple as running **app.py**

By default the app runs on localhost:80/media, but all these things can be easily configured in the code.
By default the flask server runs on 10.8.8.8:88 (because that was the app setup for dweb2019), but that can be changed.

If you want different settings on different devices, having an environment var like DEBUG=true is useful.

0 comments on commit ed60ef2

Please sign in to comment.