The best (free!) way to host would probably be on Vercel. Click this button to deploy instantly!
Or, follow these instructions manually;
-
Create a Vercel account and link your Github account to it (Create a Github account if you don't have one)
-
Fork
FOSSLingo/backend -
In Vercel, select "Import Project" and select "backend". This is the repo we forked.
-
Click "Deploy", and note down the URL it gives you! This URL will be used in your selfhosted frontend.
If you would like to self host the backend on your own machine, follow these instructions.
Tip
We don't cover port forwarding / exposing to the web,
but for that, we recommend cloudflared!
This guide assumes you have uv and git installed on a Linux system.
- Clone this repo somewhere easy to access:
git clone https://github.com/FOSSLingo/backend- cd into the directory:
cd backend- Create a Python venv:
uv venv venv- Activate the venv:
venv\Scripts\activate- Install dependencies:
uv pip install -r requirements.txt- Start server:
fastapi run main.py --host 0.0.0.0 --port 8000or run
start.bat