1
0
Fork 0
mirror of https://github.com/Lynnesbian/FediBooks/ synced 2024-11-25 16:48:58 +00:00

Compare commits

...

6 commits

Author SHA1 Message Date
00369be990
add self host disclaimer 2020-01-08 09:10:21 +10:00
dependabot-preview[bot]
116b313269
Merge pull request #36 from Lynnesbian/dependabot/pip/beautifulsoup4-4.8.2 2020-01-07 23:07:52 +00:00
ca824cc7b0
Merge pull request #37 from knuxify/add-selfhosting-guide
Add selfhosting guide
2020-01-08 09:06:41 +10:00
knuxify
cb39b4cfea docs: make the selfhosting guide a bit more clear 2019-12-30 14:30:36 +01:00
knuxify
49457d8a62 docs: add basic selfhosting guide 2019-12-30 14:21:42 +01:00
dependabot-preview[bot]
5b8bf3dc32
Bump beautifulsoup4 from 4.8.1 to 4.8.2
Bumps [beautifulsoup4](http://www.crummy.com/software/BeautifulSoup/bs4/) from 4.8.1 to 4.8.2.

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-12-25 19:38:54 +00:00
2 changed files with 45 additions and 1 deletions

View file

@ -1,2 +1,46 @@
# FediBooks
A web UI for creating your very own ebooks bots.
# Selfhosting
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.
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``.
4. Fill in the ``app/config.json`` file.
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';
GRANT USAGE ON *.* TO 'myuser'@localhost IDENTIFIED BY 'mypassword';
GRANT ALL privileges ON `fedibooks`.* TO 'myuser'@localhost;
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.

View file

@ -1,6 +1,6 @@
Mastodon.py==1.5.0
markovify==0.8.0
beautifulsoup4==4.8.1
beautifulsoup4==4.8.2
requests==2.22.0
Flask==1.1.1
flask-mysqldb==0.2.0