buku/bukuserver
2018-11-01 19:35:18 +05:30
..
static/bukuserver/js Replace minified with standard chart.js to make bukuserver 2018-08-29 10:44:02 +08:00
templates/bukuserver Replace minified with standard chart.js to make bukuserver 2018-08-29 10:44:02 +08:00
__init__.py chg: dev: rename api folder to bukuserver 2018-04-06 15:07:33 +08:00
__main__.py chg: dev: review request 2018-04-06 15:07:34 +08:00
filters.py Feature/server (#289) 2018-06-28 19:34:35 +05:30
forms.py Feature/server (#289) 2018-06-28 19:34:35 +05:30
README.md Refactor bukuserver manual install steps 2018-11-01 19:35:18 +05:30
requirements.txt Fix vulnerability: CVE-2018-18074 2018-10-30 05:59:04 +05:30
response.py Fix build break 2018-07-19 02:27:15 +05:30
server.py chg: dev: remove unused import 2018-07-19 12:18:27 +08:00
views.py fix: user: link to bookmark with empty tag 2018-10-29 21:51:53 +05:30

Bukuserver

Table of Contents

Installation

You need to have some packages before you install bukuserver on your server. So be sure to have python3, python3-pip , python3-dev, libffi-dev packages from your distribution.

Dependencies

$ python3 -m pip install --user --upgrade pip
$ python3 -m pip install --user virtualenv
$ python3 -m virtualenv env
$ source env/bin/activate

From PyPi

$ pip3 install buku[server]

From source

$ git clone https://github.com/jarun/Buku
$ cd Buku
$ pip3 install .[server]

Webserver options

To run the server on host 127.0.0.1, port 5001, run following command:

$ bukuserver run --host 127.0.0.1 --port 5001

Visit 127.0.0.1:5001 in your browser to access your bookmarks.

See more option on bukuserver run --help and bukuserver --help

Configuration

Following are available os env config available for bukuserver.

Name (without prefix) Description Value
PER_PAGE bookmarks per page positive integer [default: 10]
SECRET_KEY server secret key string [default: os.urandom(24)]
URL_RENDER_MODE url render mode full or netloc [default: full]

Note: BUKUSERVER_ is the common prefix.

Note: if input is invalid, the default value will be used

e.g. to set bukuserver to show 100 item per page run the following command

# on linux
$ export BUKUSERVER_PER_PAGE=100

# on windows
$ SET BUKUSERVER_PER_PAGE=100

# in dockerfile
ENV BUKUSERVER_PER_PAGE=100

Screenshots


home page

home page



index page

bookmark stats



index page

bookmark page



index page

create bookmark



index page

edit bookmark



index page

view bookmark details



index page

tag page