Simple REST API with SSL and Basic HTTP Authentication
- pip install -r requirements.txt
- pip freeze > requirements.txt
- export FLASK_APP=app/server.py
1. Install mongodb using Docker (https://hub.docker.com/_/mongo/)
2. Create user
- db.users.insertOne({'name':'admin', 'password':'admin'})
3. Check creation
- db.users.find()
-
python app/server.py DEBUG SSL
-
Example: python app/server.py True True
- Flask
- Flask HTTP auth