Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Library Structure #17

Open
mj-meyer opened this issue Dec 5, 2019 · 0 comments
Open

Library Structure #17

mj-meyer opened this issue Dec 5, 2019 · 0 comments
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@mj-meyer
Copy link
Owner

mj-meyer commented Dec 5, 2019

This is how I envision the library structure should look like roughly. Only highlighted the most important points. Most interfaces and presentational components aren't listed. This is only to help me stay sane and make sure I create the right libraries.

Anything in BOLD is a library on its own.

interfaces

  • joke interface

feature-joke

  • data-access-joke
    • api call to joke
  • container
    • INIT load from localstorage (feature-joke-state)
    • ADD/Remove to/from favourites (feature-joke-state)
      • Is joke in favourites? (feature-joke-state - exists)
      • add one
      • remove one
    • NEW joke
    • SHARE joke (feature-share)

feature-joke-state (localStorage)

  • add one
  • delete one
  • exists - get one by id
  • get all
  • delete all

feature-favourites

  • container
    • INIT open modal
    • INIT load list (feature-share - data-access-share - get)
    • share list (feature-share - post)
    • delete list (feature-joke-state - delete all)
    • delete one (feature-joke-state - delete one)
    • close modal

feature-share

  • data-access-share
    • post api call to MYJSON
    • get api call to MYJSON
  • container
    • INIT open modal
    • share joke/s (data-access-share - post)
    • copy link to clipboard
@mj-meyer mj-meyer added the documentation Improvements or additions to documentation label Dec 5, 2019
@mj-meyer mj-meyer added this to the Launch HowToDad App milestone Dec 5, 2019
@mj-meyer mj-meyer self-assigned this Dec 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant