Coder Social home page Coder Social logo

hummingbird-client's Introduction

Hummingbird Client

This README outlines the details of collaborating on this application.

Running Tests

  • npm test

Check out ember-exam for testing options.

Styleguide

Styleguide Amendments

JavaScript

Assignment

Use const for all of your references; If you must reassign references, use let instead of var.

Why? This ensures that you can't reassign your references, which can lead to bugs and difficult to comprehend code.

Why? let is block-scoped rather than function-scoped like var.

Ember

Import what you use, do not use globals

For Ember Data, we should import ember-data modules. For Ember, we should import via ember-cli-shims.

import Model from 'ember-data/model';
import attr from 'ember-data/attr';
import computed from 'ember-computed';

export default Model.extend({
  firstName: attr('string'),
  lastName: attr('string'),

  fullName: computed('firstName', 'lastName', {
    get() {
      // Code
    }
  }).readOnly()
});

Use Pods structure

Our directory structure is different to the defined structure in the DockYard styleguide.

This will change again when this Ember RFC is completed.

app/
  components/
    shared-component/
      component.js
      template.hbs
  models/
    user/
      model.js
      adapter.js
      serializer.js
  services/
    current-session.js
  routes/
    dashboard/
      components/
        route-specific-component
          component.js
          template.hbs
      controller.js
      route.js
      template.hbs

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.