A starter project structure for framework7 app, using Node and Express for server rendering, the MVVM lib -- Vue.js is optional, but highly recommended, because it could help us to improve building modern web interfaces simply and efficiently.
It is not only a template boilerplate, but a toolkit for development, which is made by a series of custom tasks written in js, and some useful middlewares for express, for the purpose of getting rid of the traditional gulp.
For example:
- using jade client template engine.
- using stylus and autoprefixer middleware to compile css.
- using browserify and babelify middleware to transform ES6/ES7 to ES5 code.
- Contain both iOS and Material Themes in single app.
- All pages stored locally, so don't need additional xhr to load page.
- Encapsulate
get
andpost
methods for fetching server data with comprehensive response handler (timeout, error etc). - Reusable components powered by Vue which made code simple and neat, more focus on the business logic.
- Isomorphic js according to Babel (it seems not very useful so far).
npm install
If your app is ready, and you want to check the results, you can execute:
npm start
then, visit http://localhost:5000
in any browser (especially mobile browser or the device mode in developer tools of Chrome).
Copyright (c) 2015 Roshan Wu. See LICENSE for details.