buku/bukuserver
Arun Prakash Jana 88b046775f
Use Statistics
2018-05-26 05:08:45 +05:30
..
static/bukuserver/js new: dev: statistic page 2018-04-19 20:33:55 +08:00
templates/bukuserver Use Statistics 2018-05-26 05:08:45 +05:30
__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
forms.py chg: dev: remove unused EditBookmarksForm 2018-04-06 15:07:34 +08:00
README.md Add images 2018-05-26 05:05:56 +05:30
requirements.txt chg: dev: rename api folder to bukuserver 2018-04-06 15:07:33 +08:00
response.py chg: dev: rename api folder to bukuserver 2018-04-06 15:07:33 +08:00
server.py new: dev: url render mode feature 2018-05-09 07:33:49 +08:00

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.

Installing dependencies

$ python3 -m pip install --user --upgrade pip
$ python3 -m pip install --user virtualenv
$ python3 -m virtualenv env
$ source env/bin/activate
$ git clone https://github.com/jarun/Buku
$ cd Buku
$ pip3 install .[server]

Installing from PyPi

$ pip3 install buku[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) and 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

Screenshots


home page

home page



index page

bookmark stats



index page

bookmark page (1)



index page

bookmark page (2)



index page

bookmark edit page



index page

tag page