https://github.com/chazkii/ahl-homework
https://github.com/chazkii/ahl-homework
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/chazkii/ahl-homework
- Owner: chazkii
- Created: 2017-09-03T21:57:20.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-09-04T08:27:43.000Z (almost 8 years ago)
- Last Synced: 2025-01-23T04:44:15.560Z (5 months ago)
- Language: HTML
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# AHL homework
A relatively secure and simple Python web service
**Applicant - Charlie Smith **
## Instructions
Please create a git repository (feel free to use your own github account) containing a minimal Python web application in the framework of your choice. The application should have a /hello endpoint, which will serve a web page containing the text "World!". That page should also contain a button, which when clicked, will cause "Hello World!" to be logged by the server to the standard output.
Please provide in that repository a Dockerfile that packages this application into a simple container, as well as the necessary commands to build and start that container on port 12345.
## Usage
```bash
docker build -t ahl .
docker run --init -it --rm -p=12345:5000 ahl
```
## Some design notes* Simple and lightweight - KISS, no need to add jQuery
* Security - CSRF token for POST, prevent privesc when deploying as container