Skip to content
This repository has been archived by the owner on Sep 24, 2020. It is now read-only.

Eric-Guo/ember-examples-with-cli

Repository files navigation

Ember Examples with CLI

Travis CI tests

Ember web app with CLI usually need quite a lot of hard drive and time to running npm install && bower install before you can acturally running small example, so if you just want to do some quickly testing based on some example, it takes long time.

So this repository just combine all the smaller Ember.js example into one and what you need is just switch between branch by running git checkout ch3-example1 && ember s.

All ch* example just copy from Suchit Puri's Ember.js Web Development with Ember CLI book and that's why we need GPL v3 license.

Todo-mvc example copy from brownie3003.

Tom Dale's blog example copy from balupton.

Ember News example copy from oskarrough.

Ember CRM is from Vic Ramon's Ember Tutorial, Original code is based on ember-rails gems, but now only backend on Rails API.

wge-examples is from Mike North speach original repository, PPT also available.

Hacker-News example is from sararob, but backend on Rails API instead of Firebase.

Book store example is from frank06, Building a modern bridge between Ember and Rails 5 with JSON API

Timesheet example is using ember-cli-simple-auth-devise, following adibsaad article, following writen by Eric-Guo

Tips for Windows Developer

Rember always open the terminal with admin privileges and install & use ember-cli-windows-addon

Contributing

Any new example in PR is welcome, but please do not change Ember.js/Ember Data version in package.json/bower.json, because it will be maintain at master branch, so by that, we can see only diff in ember example apps. Usually we only interested in that.

Because ember.js rapid release cycle, master branch will also using new ember.js release after, so it will invalid version problem for all example branch latter.

So except master branch, all other branch can be rebased to the master branch without notice, but I will merge all PR first to do that and it won't happen often, usually 6 weeks, same as ember.js release cycle.

Prerequisites

You will need the following things properly installed on your computer.

Installation

  • git clone git@github.com:Eric-Guo/ember-examples-with-cli.git this repository
  • git checkout ch5-example1 change into any example branch you want to check
  • npm install & bower install

Running / Development

  • git branch to list all example available
  • git checkout <example-branch-name>
  • npm install & bower install only need at first time and such example change the package.json/bower.json
  • ember server
  • Visit your app at http://localhost:4200.

Code Generators

Make use of the many generators for code, try ember help generate for more details

Running Tests

  • ember test
  • ember test --server

Building

  • ember build (development)
  • ember build --environment production (production)

Deploying

Specify what it takes to deploy your app.

Further Reading / Useful Links

About

All Ember.js examples in one repos, switch branchs to run instead of time consuming npm install

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published