]> git.mxchange.org Git - fba.git/blob - README.md
84b1030e06716d5f8fb9b53cf902abafab673bf4
[fba.git] / README.md
1 # Fedi block API
2
3 Used to see which instances block yours.
4
5 ## software used:
6
7 - python 3.10.2
8 - [node v17.6.0](https://github.com/nodesource/distributions/blob/master/README.md#installation-instructions)
9 - [yarn 1.22.17](https://classic.yarnpkg.com/en/docs/install#debian-stable)
10
11 ## Installation
12
13 ### Copy the preloaded database to the live database
14
15 ```bash
16 cp blocks_preloaded.db blocks.db
17 ```
18
19 ### Install the services
20
21 Make sure to edit the `User` and `WorkingDirectory` in each service file accordingly.
22
23 ```bash
24 sudo cp services/* /etc/systemd/system
25 ```
26
27 ### Install node packages
28
29 ```bash
30 cd apis
31 yarn install
32 ```
33
34 ### start the services
35
36 ```bash
37 systemctl start mastodon_api
38 systemctl start fetch_blocks
39 systemctl start fedi_block_api
40 ```
41
42 ## Try it out
43
44 https://api.chizu.love/blocked/
45
46 ## License
47
48 [AGPLv3+NIGGER](https://plusnigger.autism.exposed/)