Skip to content

Instantly share code, notes, and snippets.

@runspired
Last active January 18, 2016 15:49
Show Gist options
  • Save runspired/b89d18a94b13a07497cb to your computer and use it in GitHub Desktop.
Save runspired/b89d18a94b13a07497cb to your computer and use it in GitHub Desktop.
Using Pods in Ember
adapters/
  foo.js
  
models/
  foo.js
  
serializers/
  foo.js

utils/
  string/
    bar.js
    spam.js
  blah.js

services/
  queues/
    ham.js
  tasks/
    eggs.js
    fish.js
  gumbo.js

styles/
  app.css

helpers/
  foo.js

initializers/
  foo.js

instance-initializers/
  foo.js

transitions/
  foo.js

routes/
  components/
  application/
  index/
    /components
          /foo-component
    /all-authenticated-pods
  login/
data/
  foo/
    model.js
    adapter.js
    serializer.js
    normalizer.js

utils/
  string/
    bar.js
    spam.js
  blah.js

services/
  queues/
    ham.js
  tasks/
    eggs.js
    fish.js
  gumbo.js

helpers/
  foo.js

initializers/
  foo.js

instance-initializers/
  foo.js

transitions/
  foo.js

components/
    foo/
      component.js
      template.hbs
      style.css

routes/
  application/
  index/
    /components
          /foo-component
    /all-authenticated-pods
  login/
@cromwellryan
Copy link

why do you like data/foo/model.js over components/food/model.js?

@grapho
Copy link

grapho commented Sep 2, 2015

i feel (personally) data should still be separate from routes or components, even if they are one-to-one used together?

+1 for the idea of having all the ember-data related stuff in a data pod

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment