Skip to content

Application for serving Discord channel archives created with the rosetta bot.

License

Notifications You must be signed in to change notification settings

SciADV-Community/genki

Repository files navigation

genki

Build Status

Genki is the web service component of rosetta, a Discord bot for visual novels playthrough servers. It is built with Django and tailwindcss.

Development setup

You need Python 3.8 installed.

  1. Install poetry.
  2. Run poetry install.
  3. Run poetry run python manage.py migrate
  4. Run export $(cat .env | xargs) && poetry run python manage.py runserver

Building the CSS

Run poetry run python manage.py tailwind build.

Production setup

  1. Create an .env file with:
  • GENKI_SECRET: The secret key.
  • GENKI_ALLOWED_HOSTS: The allowed hosts (comma separated).
  • DISCORD_CLIENT_ID: The Discord app ID.
  • DISCORD_CLIENT_SECRET: The Discord app Secret.
  • GENKI_DB_USER: The database username for genki.
  • GENKI_DB_PASSWORD: The database password for genki.
  • GENKI_DB_HOST: The hostname of the PostgreSQL instance (for pointing to localhost outside of docker, use host.docker.internal if you're using Docker Desktop, or (probably, check with ifconfig) 172.17.0.1 on Linux).
  • GENKI_DB_PORT: The port the PostgreSQL instance is running on (5432 by default).
  • (Optional) GENKI_HTTPS: If serving over HTTPS.
  1. Build the images with docker-compose build.
  2. Create the genki_media volume with docker volume create genki_media.
  3. Run the images.
  • If you want to also run a database instance, run:
    docker-compose -f docker-compose.yml -f docker-compose.db.yml up
    And add the following to your .env file:
    • POSTGRES_USER: Same as GENKI_DB_USER.
    • POSTGRES_PASSWORD: Same as GENKI_DBPASSWORD.
    • POSTGRESS_DB: genki.
  • If you are using another PostgreSQL instance, then just run:
    docker-compose up

About

Application for serving Discord channel archives created with the rosetta bot.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published