Restructure the generated app structure #222

Closed
bryanp opened this Issue Feb 14, 2017 · 0 comments

Comments

Projects
None yet
1 participant
@bryanp
Member

bryanp commented Feb 14, 2017

We're changing the app structure for 1.0 (see discussion). Here's the new structure:

app/
  define.rb # defines the app

  features/
    # groups together related aspects of a feature

  lib/
    # misc code that doesn't fit elsewhere (not loaded automatically)

  mappers/
    # custom mappers for data models

  models/
    # data model definitions

  presentation/
    assets/
      # asset files (css, js, images, etc)

    layouts/
      # view templates for layouts

    partials/
      # view templates for shared partials

    templates/
      # all the other view templates

  presenters/
    # presenter definitions

  resources/
    # router definitions

  routers/
    # router definitions

  views/
    # view definitions

config/
  environment.rb # loads and mounts the app(s)

  lib/
    # misc code to be reused across the environment (not loaded automatically)

Some of the new structure pertains to new features, including:

  • app/features
  • app/mappers
  • app/models
  • app/presentation/assets
  • app/presentation/partials
  • app/presenters
  • app/views

Ignore those bits as part of this work.

@bryanp bryanp added the enhancement label Feb 14, 2017

@bryanp bryanp added this to the 1.0 milestone Feb 14, 2017

@bryanp bryanp closed this Nov 28, 2017

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