Skip to content

Commit

Permalink
From rust to markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
jarun committed May 25, 2018
1 parent 279219d commit a481e9c
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 84 deletions.
64 changes: 64 additions & 0 deletions bukuserver/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
## Bukuserver

### Table of Contents

- [Installation](#installation)
- [Installing dependencies](#installing-dependencies)
- [Installing from PyPi](#installing-from-pypi)
- [Webserver options](#webserver-options)
- [Configuration](#configuration)

### 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
```
84 changes: 0 additions & 84 deletions bukuserver/README.rst

This file was deleted.

1 comment on commit a481e9c

@jarun
Copy link
Owner Author

@jarun jarun commented on a481e9c May 25, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rachmadaniHaryono please review.

Please sign in to comment.