added rqlite install instructions
This commit is contained in:
parent
845ea5827b
commit
9d8228f91c
33
README.md
Executable file → Normal file
33
README.md
Executable file → Normal file
@ -4,6 +4,13 @@ Library running on Flask and SQLight (maybe to be replaced with a python shelve)
|
|||||||
requirements.txt
|
requirements.txt
|
||||||
$ pip3 install -r requirements.txt
|
$ pip3 install -r requirements.txt
|
||||||
|
|
||||||
|
install rqlite
|
||||||
|
install pyrqlite
|
||||||
|
install sqlalchemy-rqlite
|
||||||
|
|
||||||
|
initialize rqlite database
|
||||||
|
$ ./rqlited ~.node
|
||||||
|
|
||||||
initialise database
|
initialise database
|
||||||
$ bash init_db.sh
|
$ bash init_db.sh
|
||||||
|
|
||||||
@ -21,10 +28,10 @@ GETs all the books in the database
|
|||||||
/api/book/id
|
/api/book/id
|
||||||
GETs a specific book by its id
|
GETs a specific book by its id
|
||||||
|
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
Further installnotes (bugs)
|
Further installnotes (bugs)
|
||||||
|
|
||||||
|
|
||||||
* create the covers folder inside the uploadsfolder
|
* create the covers folder inside the uploadsfolder
|
||||||
* don't forget to chmod the uploads and coverfolder ;-)
|
* don't forget to chmod the uploads and coverfolder ;-)
|
||||||
|
|
||||||
@ -36,13 +43,35 @@ brew install imagemagick@6
|
|||||||
Create a symlink to this newly installed dylib file as mentioned in other answer to get things working.
|
Create a symlink to this newly installed dylib file as mentioned in other answer to get things working.
|
||||||
ln -s /usr/local/Cellar/imagemagick@6/<your specific 6 version>/lib/libMagickWand-6.Q16.dylib /usr/local/lib/libMagickWand.dylib
|
ln -s /usr/local/Cellar/imagemagick@6/<your specific 6 version>/lib/libMagickWand-6.Q16.dylib /usr/local/lib/libMagickWand.dylib
|
||||||
|
|
||||||
|
|
||||||
|
## install rqlite
|
||||||
|
|
||||||
|
### Linux
|
||||||
|
To download and start rqlite on Linux, execute the following in a shell.
|
||||||
|
|
||||||
|
curl -L https://github.com/rqlite/rqlite/releases/download/v4.3.0/rqlite-v4.3.0-linux-amd64.tar.gz -o rqlite-v4.3.0-linux-amd64.tar.gz
|
||||||
|
tar xvfz rqlite-v4.3.0-linux-amd64.tar.gz
|
||||||
|
cd rqlite-v4.3.0-linux-amd64
|
||||||
|
./rqlited ~/node.1
|
||||||
|
|
||||||
|
### OSX
|
||||||
|
To download and start rqlite on OSX, execute the following in a shell.
|
||||||
|
|
||||||
|
curl -L https://github.com/rqlite/rqlite/releases/download/v4.3.0/rqlite-v4.3.0-darwin-amd64.tar.gz -o rqlite-v4.3.0-darwin-amd64.tar.gz
|
||||||
|
tar xvfz rqlite-v4.3.0-darwin-amd64.tar.gz
|
||||||
|
cd rqlite-v4.3.0-darwin-amd64
|
||||||
|
./rqlited ~/node.1
|
||||||
|
|
||||||
|
|
||||||
## install pyrqlite
|
## install pyrqlite
|
||||||
|
|
||||||
git clone https://github.com/rqlite/pyrqlite.git
|
git clone https://github.com/rqlite/pyrqlite.git
|
||||||
pip install ./pyrqlite
|
pip install ./pyrqlite
|
||||||
|
|
||||||
|
|
||||||
## install sqlalchemy-rqlite
|
## install sqlalchemy-rqlite
|
||||||
|
|
||||||
git clone https://github.com/rqlite/sqlalchemy-rqlite.git
|
git clone https://github.com/rqlite/sqlalchemy-rqlite.git
|
||||||
cd sqlalchemy-rqlite
|
cd sqlalchemy-rqlite
|
||||||
sudo python3 ./setup.py install
|
sudo python3 ./setup.py install
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user