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

Data Model thinking... #3

Open
robzolkos opened this issue Sep 23, 2023 · 5 comments
Open

Data Model thinking... #3

robzolkos opened this issue Sep 23, 2023 · 5 comments
Labels

Comments

@robzolkos
Copy link
Owner

Model:

App/Application ? (feels weird to have a model called this in an app)

Attributes:

  • name
  • type ios/android/both?
  • url -> to app store

has_many :screenshots

Screenshot
has_attached :file

@MikeRayUX
Copy link

MikeRayUX commented Sep 26, 2023

I'm thinking App is a fitting choice here, as it inherently refers to applications deployed in stores.

platform might also be a better fit than type (unsure whether type is still a reserved keyword for STI).

enum platform: { ios: 0, android: 1 }

Screenshots:

Would it be helpful to display screenshots/descriptions on a show page/modal?

@MikeRayUX
Copy link

MikeRayUX commented Sep 26, 2023

Since Apps could be in both stores:

app_store_url, play_store_url

OR

ios_url, android_url would probably make more sense than an enum.

@robzolkos
Copy link
Owner Author

Yeah the platform enum is great. Each app will have its own show page for sure (probably shown in a modal).

@williamkennedy
Copy link
Collaborator

Hey @robzolkos

I had a tweet about this the other day, but you beat me to it. My tweet was only half a joke 😁

But something that I do think it is worth pursuing is just using a yaml file for your data. This means that you can load it from a file and don't have to worry about a database. It will help save some time and money.

The benefit of a yaml file is that it would make it easier for contributors to add another record compared with a database interface.

It's just a thought.

@robzolkos
Copy link
Owner Author

Hey @williamkennedy - yep I just added a config/app_directory.yml file! Much easier!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants