You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Nikola Forró
c553d75cc9
|
6 years ago | |
---|---|---|
apps | 6 years ago | |
cms | 6 years ago | |
comments-api | 6 years ago | |
nginx | 6 years ago | |
quotes-api | 6 years ago | |
Dockerfile | 6 years ago | |
LICENSE | 7 years ago | |
README.md | 6 years ago | |
docker-compose.yaml.example | 6 years ago |
README.md
ladylilia.com
Project structure
quotes-api
- Flask application implementing RESTful API for querying/manipulating the database of quotescomments-api
- Flask application implementing RESTful API for querying the database of Twitch commentscms
- Grav CMS (Content Management System)apps/quotes
- Angular application for browsing quotesapps/schedule
- Angular application for viewing livestream schedulenginx
- Configuration of NGINX web server
Deployment
This project consists of 4 container images (quotes-api
, comments-api
, cms
and nginx
), that depend on each other - they need to run simultaneously and share certain data between themselves.
Easiest way to manage that is using docker-compose
. Just copy docker-compose.yaml.example
into docker-compose.yaml
, make necessary adjustments and fire it all up with:
docker-compose up -d
Quotes API key generation
Quotes API key is needed for POST
, PUT
and DELETE
API methods.
If the quotes-api
container is running, then the key can be generated like this:
docker exec $QUOTES_API_CONTAINER_NAME python generate_api_key.py $USERNAME $EXPIRATION_TIME_IN_SECONDS