A FastAPI backend for the GotHub website's random instances feature
  • Python 83.6%
  • Dockerfile 16.4%
Find a file
Odyssey 40a7e61a78
All checks were successful
ci/woodpecker/push/build Pipeline was successful
Disable IP logging in uvicorn
Signed-off-by: Odyssey <[email protected]>
2023-04-04 11:37:53 +02:00
.woodpecker oh, oops 2023-04-03 20:31:08 +02:00
.gitignore Switch to FastAPI 2023-04-03 22:20:12 +02:00
Dockerfile Disable IP logging in uvicorn 2023-04-04 11:37:53 +02:00
LICENSE Initial commit 2023-04-03 20:10:55 +02:00
main.py Forgot to replace the first redirect occurence. 2023-04-03 22:01:49 +00:00
readme.md Add uvicorn, update readme 2023-04-03 22:22:21 +02:00
requirements.txt Add uvicorn, update readme 2023-04-03 22:22:21 +02:00

RandomInstance

A FastAPI-based backend for GotHub's website to power the random instance feature.

Setup

We use Docker for deploying this, so you can just run the following command to get it up and running:

docker run -d -p 8080:8080 --name random-instance codeberg.org/gothub/randominstance

Manual

Okay, you want to do it manually? sure.

Requirements

Running

git clone https://codeberg.org/gothub/randominstance.git
cd randominstance
pip install -r requirements.txt
uvicorn main:app --reload