Skip to content

It's an example app using Canjs, Flask, RequireJS, Initializr, Bootstrap, JSDoc, mustache, i18next, BusterJS, Flask-SQLAlchemy,Flask-Babel,pyjade

Notifications You must be signed in to change notification settings

dorajistyle/canjs-flask-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

It's an example app using Canjs, Flask, RequireJS, Initializr, Bootstrap, JSDoc, mustache, i18next, BusterJS, Flask-SQLAlchemy,Flask-Babel,pyjade

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published