anze3db / fedidevs

Discover amazing developers across the fediverse 🌐
https://fedidevs.com
MIT License
13 stars 6 forks source link
django fediverse python

Fedidevs

This is the source code for the fedidevs.com website.

Set up dev environment

  1. Install Python 3.12

  2. Create a venv environment

    python -m venv .venv
  3. Activate the virtual env

    . .venv/bin/activate
  4. Install required packages

    python -m pip install -r requirements.txt
  5. Run the migrations

    python manage.py migrate
  6. Run the development server

    python manage.py runserver
  7. In a separate terminal set up tailwindcss...

    python manage.py tailwind install
  8. ... and start the tailwind server

    python manage.py tailwind start
  9. ... and start the background worker (only needed for syncing followers on login)

    python manage.py rundramatiq --reload
  10. Populate the local database (takes about ~1hr)

    python manage.py scheduler --run-now

or run the crawler and indexer separately if you only want to populate account data (takes about ~5mins)

python manage.py crawler
python manage.py indexer
  1. Create a Django Admin user for http://localhost:8000/admin
    python manage.py createsuperuser