Git Product home page Git Product logo

forging2012 / bottle-vue-kickstart Goto Github PK

View Code? Open in Web Editor NEW

This project forked from koddr/bottle-vue-kickstart

0.0 2.0 0.0 161 KB

πŸ• Very basic Bottle kickstart kit with Vue.js and Webpack. Included Axios, Autoprefixer, Babel, Webpack config, demo app with Bulma and Web font loader.

Home Page: https://github.com/koddr/bottle-vue-kickstart

License: MIT License

Python 33.78% JavaScript 23.88% CSS 4.79% HTML 37.55%

bottle-vue-kickstart's Introduction

bottle-vue-kickstart-main

Very basic Bottle kickstart kit with Vue.js and Webpack

GitHub release licence licence

What's included to kit?

  • Bottle 0.12.13 (stable)

NPM packages:

  • Axios 0.17+ (AJAX calls)
  • PostCSS/Autoprefixer 7.2+ (automate CSS prefixes)
  • Babel 7.0+ (turn ES6 code to vanilla)
  • Vue.js 2.5+ (the basis of reactive web applications)
  • Webpack 3.10+ with config (SCSS, ES6, Vue.js)
  • Web font loader 1.6+ (async load font from Google Fonts)

Example:

What's Bottle?

Bottle – is 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!

Simplify development of reactive web applications β€” use this kickstart kit now!

How to install and use kit?

First, clone this GitHub repository:

$ git clone [email protected]:koddr/bottle-vue-kickstart.git

Second, install NPM dependencies and make build:

$ cd bottle-vue-kickstart
$ npm install
$ npm run build # or `npm run watch` for hot-reload

Third, prepare your virtual environment:

Since 0.4.2 we use Pipenv project for manage virtual environments.

Install via pip to your system:

$ pip install pipenv

More info about Pipenv here: Managing dependencies, Python.org.

And now, install Bottle with all extensions:

$ pipenv install

Yes, virtual environment is automaticaly create. If you want to know system link, just use pipenv --venv. Result is something like this: /Users/username/.virtualenvs/bottle-vue-kickstart--XXXXXX. Use it in PyCharm or else.

Finally, run development server:

$ python3 run.py

Bottle v0.12.13 server starting up (using AutoServer())...
Listening on http://localhost:8080/
Hit Ctrl-C to quit.
...

If you did everything right...

Result without database

(Optional) Install database with example objects:

$ python3 _devtools/install_init_database.py

Now, your yellow section on http://localhost:8080/ will look like this:

Result with database

And we done!

Final app structure

β”œβ”€β”€ _devtools
β”‚Β Β  └── install_init_database.py
β”œβ”€β”€ static
β”‚Β Β  β”œβ”€β”€ assets
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ js
β”‚Β Β  β”‚Β Β  β”‚   └── script.js
β”‚Β Β  β”‚   └── scss
β”‚Β Β  β”‚       └── style.scss
β”‚Β Β  β”œβ”€β”€ css
β”‚Β Β  β”‚Β Β  └── style.min.css
β”‚Β Β  β”œβ”€β”€ images
β”‚Β Β  β”‚Β Β  └── bottle-vue-kickstart-logo-horizontal.svg
β”‚Β Β  └── js
β”‚Β Β      └── script.min.js
β”œβ”€β”€ templates
β”‚Β Β  β”œβ”€β”€ index.html
β”‚Β Β  └── layout
β”‚Β Β      └── base.html
β”œβ”€β”€ .babelrc
β”œβ”€β”€ .editorconfig
β”œβ”€β”€ .gitignore
β”œβ”€β”€ articles.db
β”œβ”€β”€ package.json
β”œβ”€β”€ package-lock.json
β”œβ”€β”€ Pipfile
β”œβ”€β”€ Pipfile.lock
β”œβ”€β”€ postcss-config.js
β”œβ”€β”€ README.md
β”œβ”€β”€ run.py
└── webpack.config.js

What's next? Build something awesome and make web beautiful again!

Author & maintainers

Development and maintenance engaged by Vic ShΓ³stak (aka Koddr). If you want to say Β«thank youΒ» and/or ask me about Bottle Vue kickstart kit β€” create new issue.


Your assistance will help make project even better!

Thanks for supporting!


License

The MIT License (MIT)

bottle-vue-kickstart's People

Contributors

koddr avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.