Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Yepoleb/gogdb
Website that collects data on GOG games
https://github.com/Yepoleb/gogdb
flask gog python
Last synced: about 1 month ago
JSON representation
Website that collects data on GOG games
- Host: GitHub
- URL: https://github.com/Yepoleb/gogdb
- Owner: Yepoleb
- License: gpl-3.0
- Created: 2017-06-05T00:36:32.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-10-30T20:48:21.000Z (about 2 months ago)
- Last Synced: 2024-10-30T21:29:39.282Z (about 2 months ago)
- Topics: flask, gog, python
- Language: Python
- Homepage: https://www.gogdb.org/
- Size: 22.3 MB
- Stars: 127
- Watchers: 8
- Forks: 15
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GOG Database
Website that collects data on GOG games.
# Deployment Instructions
All commands need to be run as root. They are specific to Debian Buster, Apache2 and
Uvicorn. If you want to use a different web or app server search for deploying
Flask applications on it.## Application
Clone the application
# cd /usr/local/share
# git clone https://github.com/Yepoleb/gogdb.git
# cd gogdbCreate system user for the updater
# adduser --system --home /var/lib/gogdb/ --shell /bin/bash --no-create-home --group --disabled-login --gecos 'GOG DB' gogdb
Create a login token for the updater to use
# scripts/run.sh token token.json
# mkdir -p /var/lib/gogdb/storage/secret/
# mv token.json /var/lib/gogdb/storage/secret/token.jsonSet access rights
# chown -R gogdb:gogdb /var/lib/gogdb/storage/
# chmod g-rwx,o-rwx -R /var/lib/gogdb/storage/secret/Copy the example config and set the storage path
# mkdir /etc/gogdb
# cp example-production.py /etc/gogdb/config-production.py
# editor /etc/gogdb/config-production.py## Apache2
Apache is used as the webserver to serve static assets and act as a HTTPS proxy.
Install Apache2
# apt install apache2
Copy the config
# cp conf/apache2/gogdb.conf /etc/apache2/sites-available/
Enable required modules
# a2enmod proxy
# a2enmod expiresEnable the site
# a2ensite gogdb
Restart Apache2
# systemctl restart apache2
## Uvicorn
Uvicorn is the default application server for GOG DB, but any other ASGI server can be used.
Install Uvicorn
# apt install uvicorn
Copy the systemd service file
# cp conf/systemd/gogdb.service /etc/systemd/system/
Start service
# systemctl daemon-reload
# systemctl enable gogdb
# systemctl start gogdb## Scripts
Scripts insert the data into the database and keep it up to date. They are
also used to build the search index.Copy the systemd email notify service to receive failed task notifications
# cp conf/systemd/[email protected] /etc/systemd/system/
Copy the systemd services for the updater
# cp conf/systemd/gogdb-updater.* /etc/systemd/system/
Enable the timer# systemctl daemon-reload
# systemctl enable gogdb-updater.timer
# systemctl start gogdb-updater.timerCopy the systemd services for the backup
# cp conf/systemd/gogdb-backup.* /etc/systemd/system/
Enable the timer# systemctl daemon-reload
# systemctl enable gogdb-backup.timer
# systemctl start gogdb-backup.timer## Development
1. Create a storage directory
2. Adapt `config-development.py` from `example-development.py`
3. Generate a token as described in the application setup processThe `scripts/run.sh` script is a convenient way to run the components of GOG DB with development defaults.
# Database Migrations
See [MIGRATIONS.md](MIGRATIONS.md)
# License
AGPLv3 or later