]> git.mxchange.org Git - fba.git/blobdiff - README.md
+1 filter for entries
[fba.git] / README.md
index 0bd4171da87607aa2719f596312f7da74265ffd3..c325526a1d3cfca42ae051d3f5e720463484f590 100644 (file)
--- a/README.md
+++ b/README.md
@@ -5,40 +5,39 @@ Used to see which instances block yours.
 ## software used:
 
 - python 3.10.2
-- node v17.6.0
-- yarn 1.22.17
 
 ## Installation
 
-### Copy the preloaded database to the live database
-
 ```bash
-cp blocks_preloaded.db blocks.db
+sudo useradd -m fba
+sudo mkdir -p /opt/fedi-block-api
+sudo chown -R fba:fba /opt/fedi-block-api
+sudo -Hu fba git clone https://git.kiwifarms.net/mint/fedi-block-api.git /opt/fedi-block-api
+cd /opt/fedi-block-api
+sudo -Hu fba pip3 install -r requirements.txt
+sudo -Hu fba cp blocks_empty.db blocks.db
+sudo -Hu fba python3 fetch_instances.py mastodon.social # try a bunch of large servers here
+sudo -Hu fba cp config.defaults.json config.json
 ```
 
-### Install the services
 
-Make sure to edit the `User` and `WorkingDirectory` in each service file accordingly.
+### Install the services
 
 ```bash
 sudo cp services/* /etc/systemd/system
 ```
 
-### Install node packages
+### start the services
 
 ```bash
-cd apis
-yarn install
+systemctl enable --now fetch_blocks
+systemctl enable --now fedi_block_api
 ```
 
-### start the services
+## Try it out
 
-```bash
-systemctl start mastodon_api
-systemctl start fetch_blocks
-systemctl start fedi_block_api
-```
+https://fba.ryona.agency/
 
 ## License
 
-[AGPLv3+NIGGER](https://plusnigger.autism.exposed/)
\ No newline at end of file
+[AGPLv3+NIGGER](https://plusnigger.autism.exposed/)