]> git.mxchange.org Git - fba.git/blob - README.md
12efbcf031056536055728a4beabd19536f4cd73
[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 ```bash
14 sudo useradd -m fba
15 sudo mkdir -p /opt/fedi-block-api
16 sudo chown -R fba:fba /opt/fedi-block-api
17 sudo -Hu fba git clone https://gitlab.com/EnjuAihara/fedi-block-api.git /opt/fedi-block-api
18 cd /opt/fedi-block-api
19 sudo -Hu fba cp blocks_preloaded.db blocks.db
20 ```
21
22 ### Install the services
23
24 ```bash
25 sudo cp services/* /etc/systemd/system
26 ```
27
28 ### Install node packages
29
30 ```bash
31 cd apis
32 sudo -Hu fba yarn install
33 ```
34
35 ### start the services
36
37 ```bash
38 systemctl enable --now fetch_blocks
39 systemctl enable --now fedi_block_api
40 ```
41
42 ## Try it out
43
44 https://chizu.love/fedi-block-api/api
45
46 ## License
47
48 [AGPLv3+NIGGER](https://plusnigger.autism.exposed/)