FediBooks/README.md

46 lines
1.4 KiB
Markdown
Raw Permalink Normal View History

2019-08-27 10:22:06 +00:00
# FediBooks
2019-12-30 13:21:42 +00:00
2019-08-27 10:22:06 +00:00
A web UI for creating your very own ebooks bots.
2019-12-30 13:21:42 +00:00
# Selfhosting
2020-01-07 23:10:21 +00:00
FediBooks is currently unfinished - many functions don't work yet, and future updates may make major, breaking changes. I don't recommend self-hosting it yet unless you're willing to work through the potential growing pains.
1. Install ``python3`` and ``mariadb`` or ``mysql``. If you're installing on Windows, make sure to check "Add Python to PATH" during Python installation.
2019-12-30 13:21:42 +00:00
2. Install the requirements, using ``pip``:
```
# pip3 install -r ./requirements.txt
```
If this doesn't work, try using ``pip`` instead. If it still doesn't work, you might have to install an additional package (for example, ``python-pip`` on Arch Linux).
3. Copy the ``app/config.sample.json`` file to ``app/config.json``.
2019-12-30 13:21:42 +00:00
4. Fill in the ``app/config.json`` file.
2019-12-30 13:21:42 +00:00
5. Run ``python3 app/setup.py`` and follow the on-screen prompts.
6. Open the MySQL prompt (using the ``mysql`` command) and type in the following commands:
```
CREATE DATABASE `fedibooks`;
CREATE USER 'myuser' IDENTIFIED BY 'mypassword';
2020-01-20 02:02:22 +00:00
GRANT ALL PRIVILEGES ON `fedibooks`.* TO 'myuser';
2019-12-30 13:21:42 +00:00
FLUSH PRIVILEGES;
exit
```
where ``fedibooks`` is your database name, ``myuser`` is your database username and ``mypassword`` is your database user's password.
7. Run
```
# mysql -u USERNAME -p DATABASE < db/setup.sql
```
where USERNAME is your database username and DATABASE is your database name.
8. Run ``./run.sh`` to start FediBooks.