I posted an overview of the app in the previous article. From here, I would like to write an article about the difficulties I had when creating the app.
This got in the way
I searched for various methods, but there were times when something that was easy to do with that page alone did not work if it had a genre page in between.
At first I wondered why it didn't work, but most of the time, genru_id was missing (laughs).
Please check the ER diagram below.
――How many intermediate tables are there?
A => 3 (UserGenrus table / UsersGroups table / Likes table)
Actually, I tried to create another intermediate table (hope table), but since the shape was the same as the UsersGroup table, the hope table uses integer to save records. So, there are actually four.
Especially it was difficult to save the id of the group member in the UsersGroups table (laugh)
Also, the reason why it was difficult to create the intermediate table was a little wrong.
I plan to write another article about this area.
Speaking from the result, it became JS (laugh) But at first, I couldn't make it JS, and I ended up saying "Why!"
――Why was it made into JS?
=> JS conversion I put it on hold for the time being and proceeded with another function, and there was a hint there!
Before posting, I previewed it so that I could check if the image matches, but this is the songwriter ... When I thought I was able to preview it, I had a hard time because the upper limit of the number of sheets did not go well (laugh)
So far, is this the place you had a hard time coming up with? Actually, I thought I'd do the details of what I struggled with, but I'd like to change it and write an article about each function.
Recommended Posts