viewller
View oriented single page application framework.
Last updated 2 months ago by digitarhythm .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install viewller 
SYNC missed versions from official npm registry.

ViewllerJS

English

DOCUMENTATION: https://sites.google.com/view/viewllerjs/home

If you have any impressions after using it, please contact Twitter.

This is a framework for creating Web applications on a View basis. (IE 11 not supported)

Getting started

  • Please add "./node_modules/.bin" to your PATH as common knowledge of node.js.

  • First, create a directory for the application.

$ mkdir viewller-apps
  • Enter the created directory.
$ cd viewller-apps
  • Initialize npm, Install the ViewllerJS npm module.
$ npm init  
$ npm i --save viewller

(Wait for a while.)

  • It puts it into the compile standby state.
$ viewller -w
  • Start runserver for debugging and production environment. Start with 'node-dev' on development mode. Start with 'forever' on production environment. Default display to sorry view(underconstruction) on production environment.
$ viewller -a
  • Terminate the process at forever do this.
$ viewller -t
  • Switch the production environment to sorry mode.
$ viewller -s
  • Switch the production environment to normal mode.
$ viewller -n
  • Deploy the development environment to the production environment.
$ viewller -d
  • display rollback number.
$ viewller -l
  • Rollback the production environment.
$ viewller -r [rollback No.]
  • The port number to be used is

Development environment
[Application directory]/config/develop.json

Production environment
[Application directory]/config/default.json

Set it with. The default port is 5001 in the development environment.
The production environment is 5000.

  • Launch runserver in development and production environment. Immediately after creating the application, "Sorry mode" is turned on. In this state, when you browse the production environment, "underconstruction" is displayed. This page can be customized.
$ viewller -a
  • Access by web browser

http://[IP address of running PC]:5001 You can connect to the development environment in the above.

http://[IP address of running PC]:5000 You can connect to the production environment in the above.

Tutorial

comming soon...

日本語

ViewベースでWebアプリケーションを作成するフレームワークです。

(IE11非対応)

  • node.jsのお約束として「./node_modules/.bin」をPATHに追加しておいてくださ。

  • アプリケーション用のディレクトリを作成し、その中でnodeの初期化を行います。

$ npm init
  • 次に、ViewllerJSをインストールします。
$ npm i viewller
  • 下記コマンドでCoffeeScriptファイルの修正を監視し、自動コンパイルします。
$ viewller -w
  • 開発環境と本番環境のrun serverが起動します。開発環境は「node-dev」を使って起動されます。本番環境は「forever」を使って起動されます。デフォルトの本番環境は「Sorry mode」になっていて「Underconstruction」が表示されます。
$ viewller -a
  • foreverで起動している本番環境を停止します。
$ viewller -t
  • 本番環境をSorryモードに変更します。
$ viewller -s
  • 本番環境をNormalモードに変更します。
$ viewller -n
  • 開発環境を本番環境にデプロイします。
$ viewller -d
  • 過去にデプロイされた環境を表示します。ロールバックする場合はこの番号を指定します。
$ viewller -l
  • 番号を指定し、本番環境をロールバックします。
$ viewller -r [rollback No.]
  • 使用するポートは、

・開発環境
[アプリケーションディレクトリ}/config/develop.json

・本番環境
[アプリケーションディレクトリ}/config/default.json

で設定します。
デフォルトポートは、開発環境が5001です。
本番環境は5000です。

  • アプリケーションを作成直後は、「Sorry mode」がオンになっています。この状態で本番環境をブラウズすると、 "underconstruction"が表示されます。このページはカスタマイズすることができます。
$ viewller -a
  • Webブラウザで確認

以下で開発環境に繋がります。 http://[実行しているPCのIPアドレス]:5001

以下で本番環境に繋がります。 http://[実行しているPCのIPアドレス]:5000

チュートリアル

絶賛、作成中

Licence

The MIT License (MIT) Copyright (c) 2018 おおやけハジメ

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Current Tags

  • 0.4.15                                ...           latest (2 months ago)

39 Versions

  • 0.4.15                                ...           2 months ago
  • 0.4.14                                ...           2 months ago
  • 0.4.13                                ...           3 months ago
  • 0.4.12                                ...           4 months ago
  • 0.4.11                                ...           5 months ago
  • 0.4.10                                ...           5 months ago
  • 0.4.9                                ...           5 months ago
  • 0.4.8                                ...           5 months ago
  • 0.4.7                                ...           5 months ago
  • 0.4.6                                ...           5 months ago
  • 0.4.5                                ...           6 months ago
  • 0.4.4                                ...           6 months ago
  • 0.4.3                                ...           6 months ago
  • 0.4.2                                ...           7 months ago
  • 0.4.1                                ...           7 months ago
  • 0.4.0                                ...           7 months ago
  • 0.3.0                                ...           7 months ago
  • 0.2.8                                ...           7 months ago
  • 0.2.7                                ...           7 months ago
  • 0.2.6                                ...           7 months ago
  • 0.2.5                                ...           7 months ago
  • 0.2.4                                ...           7 months ago
  • 0.2.3                                ...           7 months ago
  • 0.2.2                                ...           7 months ago
  • 0.2.1                                ...           7 months ago
  • 0.2.0                                ...           7 months ago
  • 0.1.12                                ...           7 months ago
  • 0.1.11                                ...           7 months ago
  • 0.1.10                                ...           7 months ago
  • 0.1.9                                ...           7 months ago
  • 0.1.8                                ...           7 months ago
  • 0.1.7                                ...           7 months ago
  • 0.1.6                                ...           7 months ago
  • 0.1.5                                ...           7 months ago
  • 0.1.4                                ...           7 months ago
  • 0.1.3                                ...           7 months ago
  • 0.1.2                                ...           7 months ago
  • 0.1.1                                ...           7 months ago
  • 0.1.0                                ...           7 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (31)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |