Workshop #2 Umbrella apps - dgoldie/phoenix1.3_workshop GitHub Wiki

We explored Umbrella apps in this workshop. Most of our focus was on the phoenix app.

  • We created a new phoenix app with the --umbrella flag: cover_umbrella.
  • We also created a new mix app with the --umbrella flag and several sub apps: roman_numerals.

cover_umbrella

Creating a new phoenix project called 'cover' generates a project called 'cover_umbrella' with two apps.

  • cover: contains all non-web stuff: schemas, contexts, repo, etc.
  • cover_web: all web things.

NOTE: The html generator only worked in cover_web folder.

multiple resources in context; nested resources

We created a context Store with two resources: Categories and Products and nested products.