Coder Social home page Coder Social logo

ember-foodchart's Introduction

Ember.js Template

Overview

Ember-template aims to help developers create Ember.js applications with a modular approach. At the same time, compiling the application down to simply static assets, an application.js file and an application.css file.

This repo contains all the code necessary to develop your application and perform the compilation procedure.

By default it ships with the Ember.js Todos application already running.

Usage

Clone the repository and enter the ember-template directory. You'll need Ruby and Bundler.

bundle install
bundle exec rackup

You will now have a server running at http://127.0.0.1:9292. To access your Ember.js application go to:

http://127.0.0.1:9292/index.html

Building your Ember.js application

Your Ember.js application should be built inside the ember-skeleton folder. Use the following file/folder explanations as a guide:

ember-skeleton
 |-	controllers -- Ember.js controllers
 |-	models		-- Ember.js models
 |-	static 		-- Any static assets (images, media) associated with your application
 |-	stylesheets	-- Either CSS or SASS files for your application
 |-	templates	-- Ember.js templates

On each page refresh, the rake-pipeline Rack middleware will compile the application into public/application.

Bootstrapping your application

In order to load the main controller of your application you must append that controller's view to the page.

You can do this using the appendTo method built into Ember.js, like so:

var MainView = Ember.View.create({
  templateName: 'main_view'
}).appendTo('#ember-skeleton');

Todo

  • Add Coffeescript support to the Assetfile
  • Hopefully track the rake-pipeline gem against rubygems instead of the git repo

Copyright

Copyright (c) 2012 Jason Barry, Steve Agalloco. See LICENSE for details

ember-foodchart's People

Contributors

jcbarry avatar southgate avatar stve avatar

Watchers

 avatar

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.