Skip to content

Latest commit

 

History

History
executable file
·
48 lines (34 loc) · 2.23 KB

readme.md

File metadata and controls

executable file
·
48 lines (34 loc) · 2.23 KB

Canjs-Flask-Example

It's a simple Multilingual Proposal Center example for developer who interested in Canjs, Python Flask, Flask-SQLAlchemy and Jade.

*Python flask only version

Environment

  • Canjs, Client-side JavaScript Framework.
  • RequireJS, JavaScript file and module loader.
  • Initializr, HTML5 templates generator.
  • Bootstrap, Front-end framework.
  • JSDoc, An inline API documentation processor for JavaScript.
  • BusterJS, JavaScript testing toolkit.
  • mustache, Logic-less templates.
  • i18next, JavaScript translating toolkit.
  • Flask, Microframework for Python based on Werkzeug, Jinja 2 and good intentions.
  • Flask-SQLAlchemy, Extension for Flask that adds support for SQLAlchemy.
  • Jade(pyjade), High performance port of Jade-lang for python.
  • Flask-Babel, Extension to Flask that adds i18n and l10n support to any Flask application.

Installation

Libraries installation.

pip install -r requirements.txt

Database initialize.

python init.py

Run the application.

python canjs_flask_proposal.py

How to use

  1. When you click a orange button, it will go to proposal page.
  2. Chose a category and fill out the form, the data will be stored in DB.
  3. When you click the vote button, the vote count will be increased. (IP based)
  4. If you have more than three items, You can see the 'more' button. When you click this, you can see more items.
  5. You can change the language setting with parameter lang. (?lang=en|ko)

Attributions

This Proposal center application source(Canjs + Python + Flask + Flask-SQLAlchemy + Jade) was made by JoongSeob Vito Kim. It's under the MIT license.