Giter Club home page Giter Club logo

marionette-js-tutorial-app's Introduction

Marionette.js Tutorial App

About

注意:2015/02現在執筆中です。

Marionette.js とSinatraを使って簡単なアプリケーションを作るための非公式チュートリアルです。
慣れるより慣れろという勉強方法をしたい方にお勧めです。 アプリケーションを作るという部分にのみフォーカスしているので、より詳しいMarionette.jsの情報が知りたい方は公式wikiをご覧ください。

執筆:2015/02
Marionette.js: v2.2.0

前準備

まずbundle install で必要なGemパッケージをインストールしておきましょう。

bundle install

下記コマンドでSinatraが起動します。

rackup -p 3000

このリポジトリにはチュートリアルで作成するアプリがすでに用意されています。
チュートリアルに行き詰った場合は実際のコードを読んでみましょう。

Gruntを使用する場合

Gruntにはnode.jsが必要なので予めインストールしておいてください。
node.jsがすでに入っている場合はgruntフォルダに入り必要なモジュールをインストールしましょう。

cd ./grunt
npm install

gruntフォルダ内で grunt と打つことでwatchモードになります。

sample@server:~/repos/marionetteTutorialApp/grunt (master)$ grunt
Running "watch" task
Waiting...

コンパイルのみしたい場合は grunt compile でコンパイルできます。

sample@server:~/repos/marionetteTutorialApp/grunt (master)$ grunt compile
Running "concat:main" (concat) task
File "../public/js/contents_all.js" created.

Running "compass:dist" (compass) task
unchanged contents/sass/style.scss
Compilation took 0.209s

各種コンパイル先は下記となります。

marionetteTutorialApp/public/js/contents_all.js
marionetteTutorialApp/public/css/style.css

grunt使用時は下記のフォルダで開発を行います。

grunt/content/js
grunt/content/scss

Gruntを使用しない場合

以下執筆中

Tutorial

Step-1 初めてのHello World.

marionette-js-tutorial-app's People

Contributors

nyappa avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

omohayui

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.