/devops-interview

A webserver and background processor for the DevOps interview

Primary LanguagePython

devops-interview

A webserver and background processor for the DevOps interview. Requires Redis and a DB which supports the JSON type (sqlite, MySql>=-5.7, Postgres).

Getting started

  1. python3 -m venv venv-devops-interview
  2. source venv-devops-interview/bin/activate
  3. pip install -r requirements.txt -r test_requirements.txt

Run server

  1. FLASK_APP=app.py flask run

Examples

curl http://localhost:5000/key/1234

{"1234":null}

curl -X POST http://localhost:5000/key/1234 --header "Content-type: application/json" --data '{"test": true}'

curl http://localhost:5000/key/1234

{"1234":{"test":true}}

Run job

  1. python derp_job.py