fedi-block-api/README.md

44 lines
658 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:
2022-03-06 13:46:43 +00:00
2022-03-04 17:18:11 +00:00
- python 3.10.2
- node v17.6.0
- yarn 1.22.17
2022-03-06 13:46:43 +00:00
## Installation
2022-03-04 17:18:11 +00:00
2022-03-06 13:46:43 +00:00
### Copy the preloaded database to the live database
2022-03-04 17:18:11 +00:00
2022-03-06 13:46:43 +00:00
```bash
cp blocks_preloaded.db blocks.db
```
2022-03-04 17:18:11 +00:00
2022-03-06 13:46:43 +00:00
### Install the services
2022-03-04 17:18:11 +00:00
2022-03-06 13:46:43 +00:00
Make sure to edit the `User` and `WorkingDirectory` in each service file accordingly.
2022-03-04 17:45:23 +00:00
2022-03-06 13:46:43 +00:00
```bash
sudo cp services/* /etc/systemd/system
2022-03-04 17:18:11 +00:00
```
2022-03-06 13:46:43 +00:00
### Install node packages
```bash
cd apis
2022-03-04 17:18:11 +00:00
yarn install
```
2022-03-06 13:46:43 +00:00
### start the services
2022-03-04 18:25:29 +00:00
2022-03-06 13:46:43 +00:00
```bash
systemctl start mastodon_api
2022-03-04 18:25:29 +00:00
systemctl start fetch_blocks
2022-03-06 13:46:43 +00:00
systemctl start fedi_block_api
2022-03-04 18:25:29 +00:00
```
2022-03-04 17:18:11 +00:00
## License
[AGPLv3+NIGGER](https://plusnigger.autism.exposed/)