|
3 months ago | |
---|---|---|
src | 7 months ago | |
static | 7 months ago | |
templates | 6 months ago | |
.dockerignore | 7 months ago | |
.editorconfig | 7 months ago | |
.gitignore | 7 months ago | |
.python-version | 7 months ago | |
Dockerfile | 7 months ago | |
LICENSE | 2 years ago | |
README.md | 5 months ago | |
docker-compose.yml | 7 months ago | |
instances.json | 5 months ago | |
pyproject.toml | 5 months ago | |
requirements-dev.lock | 7 months ago | |
requirements.lock | 7 months ago |
We're rural, not urban.
Privacy-respecting, NoJS-supporting Urban Dictionary frontend.
URL | Country | Owner name | Owner Website |
---|---|---|---|
https://rd.vern.cc + Tor + I2P | US | ~vern | https://vern.cc |
https://rd.bloat.cat | DE | bloatcat | https://bloat.cat |
https://rd.thirtysix.pw | NL | thirtysix | https://thirtysix.pw |
Frontend supports all Urban Dictionary features and has endpoint-parity with it. Available features include:
Clone repository:
git clone https://git.vern.cc/cobra/rural-dict.git
cd rural-dict
docker build . -t rural-dict
docker compose up -d
python3 -m venv .venv
. .venv/bin/activate
pip install -r requirements.lock
uvicorn src.main:app --no-access-log --proxy-headers --forwarded-allow-ips '*' --host 0.0.0.0 --port 5758
To run the app behind a reverse proxy, ensure that the appropriate proxy headers are added. Below is a sample configuration for NGINX:
location / {
proxy_pass http://127.0.0.1:5758;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
Install Rye by following the installation guide.
Use rye sync
to install dependencies and required Python version.
Use rye run dev
to start development server which will reload on every change to source code.
Use rye check --fix
and rye fmt
to lint and format code. Assumed to be run before each commit
to guarantee code quality.
Use rye run basedpyright
to ensure typing is correct.
Join our Matrix room for support and other things related to Rural Dictionary.
To use Rural Dictionary, simply replace an Urban Dictionary URL with a Rural Dictionary URL from the instance list above. Auto-redirect browser extension like Redirector can be used to achieve this.
For example, change:
https://urbandictionary.com/define.php?term=kin
to:
https://rd.vern.cc/define.php?term=kin
Note: More endpoints are supported.
This project is licensed under the AGPLv3+ license - see the license file for details.