A FastAPI backend for the GotHub website's random instances feature
- Python 83.6%
- Dockerfile 16.4%
|
Odyssey
40a7e61a78
All checks were successful
ci/woodpecker/push/build Pipeline was successful
Signed-off-by: Odyssey <hi@odyssey346.dev> |
||
|---|---|---|
| .woodpecker | oh, oops | |
| .gitignore | Switch to FastAPI | |
| Dockerfile | Disable IP logging in uvicorn | |
| LICENSE | Initial commit | |
| main.py | Forgot to replace the first redirect occurence. | |
| readme.md | Add uvicorn, update readme | |
| requirements.txt | Add uvicorn, update readme | |
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