fedi-block-api/README.md

38 lines
739 B
Markdown
Raw Normal View History

2022-03-04 17:18:11 +00:00
# Fedi block API
Used to see which instances block yours.
## software used:
- python 3.10.2
- node v17.6.0
- yarn 1.22.17
## how to use:
Copy the preloaded database to the live database
`cp blocks_preloaded.db blocks.db`
Start the mastodon API
2022-03-04 17:45:23 +00:00
Make sure to edit the `User` and `WorkingDirectory` of the service file accordingly.
2022-03-04 17:18:11 +00:00
```
2022-03-04 17:45:23 +00:00
sudo cp services/mastodon_api.service /etc/systemd/system
2022-03-04 17:18:11 +00:00
cd mastodon_api
yarn install
2022-03-04 17:45:23 +00:00
systemctl start mastodon_api
2022-03-04 17:18:11 +00:00
```
Fill the database with blocks.
2022-03-04 18:25:29 +00:00
Make sure to edit the `User` and `WorkingDirectory` of the service file accordingly.
```
sudo cp services/fetch_blocks.service /etc/systemd/system
systemctl start fetch_blocks
```
2022-03-04 17:18:11 +00:00
## License
[AGPLv3+NIGGER](https://plusnigger.autism.exposed/)