kopia lustrzana https://github.com/fediversespace/fediverse.space
Fediverse graph.
Old issues: https://gitlab.com/fediverse.space/fediverse.space/-/issues
|
|
||
|---|---|---|
| backend | ||
| config | ||
| frontend | ||
| gephi | ||
| .gitignore | ||
| LICENSE | ||
| README.md | ||
| docker-compose.production.yml | ||
| docker-compose.yml | ||
| example.env | ||
README.md
fediverse.space 🌐 
The map of the fediverse that you always wanted.
Requirements
- For everything:
- Docker
- Docker-compose
- For the scraper + API:
- Python 3
- For laying out the graph:
- Java
- For the frontend:
- Yarn
Running it
Backend
cp example.env .envand modify environment variables as requireddocker-compose builddocker-compose up -d django- if you don't specify
django, it'll also startgephiwhich should only be run as a regular one-off job
- if you don't specify
Frontend
cd frontend && yarn installyarn start
Commands
Backend
After running the backend in Docker:
docker-compose exec web python manage.py scrapescrapes the fediverse- It only scrapes instances that have not been scraped in the last 24 hours.
- By default, it'll only scrape 50 instances in one go. If you want to scrape everything, pass the
--allflag.
docker-compose exec web python manage.py build_edgesaggregates this information into edges with weightsdocker-compose run gephi java -Xmx1g -jar build/libs/graphBuilder.jarlays out the graph
To run in production, use docker-compose -f docker-compose.yml -f docker-compose.production.yml instead of just docker-compose.
Frontend
yarn buildto create an optimized build for deployment