项目作者: king-prawns

项目描述 :
Ember 2.9 project - Start from scratch
高级语言: JavaScript
项目地址: git://github.com/king-prawns/Ember2.9-SFS.git
创建时间: 2016-11-16T16:49:37Z
项目社区:https://github.com/king-prawns/Ember2.9-SFS

开源协议:MIT License

下载


Ember2.9-SFS

Ember 2.9 project - Start from scratch

Installation

  • Install Node.js

Go to Node website

  • Install Git

Go to Git website

Then add Git to Windows Path

A simple CLI for scaffolding Ember.js projects

  1. $ npm install -g ember-cli

A package manager for the web

  1. $ npm install -g bower

Full fake REST API

  1. $ npm install -g json-server

Usage

  • Clone or Download the project

  • Install dependencies

    1. $ cd my-project
    2. $ npm install
    3. $ bower install
  • Open first command prompt

a) for dev build

  1. $ cd my-project
  2. $ ember server

b) for prod build

  1. $ cd my-project
  2. $ ember build --env production

Install http-server

A command-line http server

  1. $ npm install -g http-server

then

  1. $ cd my-project\dist
  2. http-server
  • Open second command prompt

    1. $ cd my-project\fake_db
    2. $ json-server --watch db.json
  • Go to localhost

a) for dev build: localhost:4200

b) for prod build: localhost:8080

Features

Conclusion

This is just a simple example, I hope this will help you to understand better Ember.