You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

56 lines
1.0 KiB
Markdown

3 years ago
# XPPL version alt
Library to hold books / knowledge
## TO DOs
3 years ago
- [x] fix adding stacks
- [x] update requirements
- [ ] generate new requirements.txt and installation process?
- [ ] fix stacks layout
- [ ] remove autocomplete? and training at the start of app
- [ ] update layout navigation
3 years ago
6 years ago
## Installation
6 years ago
Install the required dependencies:
$ pip3 install -r requirements.txt
6 years ago
3 years ago
Initialise database / Why is this needed again, could be checked in flask?
6 years ago
$ bash init_db.sh
6 years ago
### Further install notes (bugs)
6 years ago
* create the covers folder inside the uploadsfolder
6 years ago
* don't forget to chmod the uploads and coverfolder ;-)
3 years ago
* For Mac users -> brew install imagemagick@6 in order to install wand (should not be relevant for debian server install)
## Run the program
Run the script in another terminal (from XPPL directory):
6 years ago
python3 run.py
6 years ago
3 years ago
## Deploy on server
(this will be added soon)
6 years ago
3 years ago
## REST API
Has currently 2 entrypoints:
`/api/books`
GETs all the books in the database
`/api/book/id`
GETs a specific book by its id