harm reduction api for substance information
# build and run
docker-compose up --build
# or run in background
docker-compose up -d --buildapi will be available at http://localhost:8080
# install python 3.7+
pip install -r requirements.txt
# run
python app.pyGET /- api documentationGET /api/substance/{slug}- get substance data from all sourcesGET /api/substance/{slug}/sources/{source}- get substance data from specific source
# get lsd data
curl http://localhost:8080/api/substance/lsd
# get lsd data from tripsit only
curl http://localhost:8080/api/substance/lsd/sources/tripsit
# get api docs
curl http://localhost:8080/- tripsit - community harm reduction database
- psychonautwiki - research-based substance info
the docker setup includes:
- gunicorn wsgi server
- health checks
- non-root user
- optimized for production