项目作者: ijlee2

项目描述 :
Ember Animated & Ember Data Storefront tutorial for Ember ATX Meetup
高级语言: JavaScript
项目地址: git://github.com/ijlee2/ember-animated-tutorial.git
创建时间: 2019-03-23T13:07:15Z
项目社区:https://github.com/ijlee2/ember-animated-tutorial

开源协议:

下载


Ember Animated Tutorial

This is the code companion to my Animation and Predictable Data Loading in Ember, presented at the Ember ATX Meetup on 3/28/2019.

How to Run

Option 1

You can run the app as is. Ember Mirage will create random data each time.

  1. Do npm install.

  2. Run ember s, then visit localhost:4200.

Option 2

You can also run the app on a local Postgres server (you need this for step-1d).

  1. Set the environment variables POSTGRES_USERNAME and POSTGRES_PASSWORD.

    1. export POSTGRES_USERNAME=<your username>
    2. export POSTGRES_PASSWORD=<your password>
  2. In /config/environment.js, please edit the ember-cli-mirage option under development environment.

    1. if (environment === 'development') {
    2. ENV['ember-cli-mirage'] = {
    3. enabled: false,
    4. };
    5. }
  3. In terminal, go to /api folder.

    1. rake db:create db:migrate db:seed

    This will create two databases, ember-animated-tutorial-development and ember-animated-tutorial-test. If you need to delete them, you can type rake db:drop.

  4. Run rails s, then visit localhost:3000.

Branches

You can check a starter code by running git checkout <branch name>:

Branch name Added features
step-1a Starter for {{link-to}} bug
step-1b Starter for findRecord bug
step-1c Starter for findAll bug
step-1d Starter for (n + 1) query bug
step-2a Starter for animation with Web Animations API
step-2b Starter for animation with Ember Animated
master Completed