11![ bottle-vue-kickstart-main] ( https://cloud.githubusercontent.com/assets/11155743/24041455/9fbd99ec-0b1e-11e7-9ba0-a429a28591b0.jpg )
22
33# Very basic kickstart Bottle kit with Vue.js
4- [ ![ GitHub release] ( https://img.shields.io/badge/version-0.4.1 -brightgreen.svg?style=flat-square )] ( https://github.com/koddr/bottle-vue-kickstart ) [ ![ licence] ( https://img.shields.io/badge/Python-2.7_or_3.4+-red.svg?style=flat-square )] ( https://www.python.org/downloads/ ) [ ![ licence] ( https://img.shields.io/badge/licence-MIT-blue.svg?style=flat-square )] ( https://github.com/koddr/bottle-vue-kickstart/blob/master/LICENSE.md )
4+ [ ![ GitHub release] ( https://img.shields.io/badge/version-0.4.2 -brightgreen.svg?style=flat-square )] ( https://github.com/koddr/bottle-vue-kickstart ) [ ![ licence] ( https://img.shields.io/badge/Python-2.7_or_3.4+-red.svg?style=flat-square )] ( https://www.python.org/downloads/ ) [ ![ licence] ( https://img.shields.io/badge/licence-MIT-blue.svg?style=flat-square )] ( https://github.com/koddr/bottle-vue-kickstart/blob/master/LICENSE.md )
55
66Simplify development of reactive web applications on [ Bottle] ( http://bottlepy.org/ ) – lightweight WSGI micro web-framework for Python! A simple process of installing and deploying. Everything has already been done for you. Just enjoy writing your code!
77
@@ -33,16 +33,19 @@ $ npm install && npm run build
3333
3434Third, prepare your virtual environment:
3535
36+ Since ` 0.4.2 ` we use [ Pipenv] ( https://github.com/pypa/pipenv ) project for manage virtual environments.
37+
3638``` bash
37- $ python3 -m venv venv
38- $ source venv/bin/activate
39+ $ pip install pipenv
3940```
4041
41- Next, install Bottle and all extensions:
42+ > More info here: https://packaging.python.org/tutorials/managing-dependencies/#managing-dependencies
43+
44+ Next, install Bottle with all extensions and go to your environment shell:
4245
4346``` bash
44- (venv) $ pip install -r requirements.txt
45- (venv) $ deactivate
47+ $ pipenv install
48+ $ pipenv shell
4649```
4750
4851Finally, run development server:
@@ -63,7 +66,7 @@ Hit Ctrl-C to quit.
6366(Optional) Install database with example objects:
6467
6568` ` ` bash
66- $ python3 install .py
69+ $ python3 _devtools/install_init_database .py
6770` ` `
6871
6972Now, your yellow section on http://localhost:8080/ will look like this:
@@ -75,6 +78,8 @@ And we done!
7578# # Final app structure
7679
7780` ` ` html
81+ ├── _devtools
82+ │ └── install_init_database.py
7883├── static
7984│ ├── assets
8085│ │ ├── js
@@ -92,9 +97,8 @@ And we done!
9297│ └── layout
9398│ └── base.html
9499├── articles.db
95- ├── install.py
96100├── package.json
97- ├── requirements.txt
101+ ├── Pipfile
98102├── run.py
99103└── webpack.config.js
100104` ` `
0 commit comments