Tc2r1 / Dev_Interview_Prep_App

This is an Open Sourced Programming Quiz Project to help people practice for interviews. We are redesigning the application for use with all languages. Open for help!
Other
51 stars 53 forks source link

Feature: Add Room DB to a module in the Project to store questions and answers. #127

Open Tc2r1 opened 1 year ago

Tc2r1 commented 1 year ago

Setup Local storage in one of the modules inside the project by using Room db.

Most Android applications require local data storage. In the past years, we have achieved this through the use of SQLite databases. Room is a persistent library that is part of the Android jetpack. It is built on top of SQLite. The room persistent library has many advantages over raw SQLite.


🎃🎃LEVEL 2 CONTRIBUTIONS🎃🎃 - RESOLVE A SMALL "ISSUE" TICKET!

  1. Find an issue and ask for rights/claim to work on it.
  2. A Maintainer will grant said permissions.
  3. Fork the repo and create a branch to save your work to.
  4. Resolve the issue
  5. Pull latest changes from master branch into your branch and resolve all merge conflicts.
  6. Create a PR!
  7. Your PR will be reviewed, after resolving all request, your PR will be accepted
  8. Open Contributors.md file and add your name and relevant information.
  9. CELEBRATE GOOD TIMES COME ON!!
  10. RINSE REPEAT! You're a fireball!




Describe alternatives you've considered

Additional context

Android Developer Docs on Room Room Tutorial

mksiddiq commented 1 year ago

Hi, I would like to try this one. We only have to add the db right? or we also have to insert questions and answers in the database by creating dao?

!assign

Tc2r1 commented 1 year ago

@mksiddiq please insert questions and answers into the database by creating dao in the com/interviewprep/kotlinretrofit/repository/tc2rgithubrepository/source/local folder, or a similar path you'd create (different modules have different setups).

If its too hard to add the Dao for you, feel free to just add the db :) Pick a module you like (or are familiar with) to work in.

mksiddiq commented 1 year ago

Sure, I will work on it.

github-actions[bot] commented 1 year ago

👋 You've been assigned this issue, Please fork the repository and create a branch to work on the issue assigned here 💻. When you are done make a Pull Request. Good Luck!

Tc2r1 commented 1 year ago

@mksiddiq HI, it sounds like you may have opened the project incorrectly. Here are some image guides to show how to correctly open the project.

However if you would like to communiate over a messenger, just reply here and i'll see if we can sync up shortly after your reply.

mksiddiq commented 1 year ago

Oh, this might be the problem. This should help, thanks!

yazh1202 commented 1 year ago

I am trying to implement the RoomDB for KotlinBase Module and there are already classes defined for Question and Answer instances so do I use typeconverters to store those instances into RoomDB or should I make new data classes for Answer and Question.

Tc2r1 commented 1 year ago

Please feel free to contact me on google chat. (nudenniew@gmail.com) or google hangouts. @yazh1202 @mksiddiq

mksiddiq commented 1 year ago

@Tc2r1 sure

Tc2r1 commented 1 year ago

@mksiddiq https://8x8.vc/tc2r1 if g chat doesn't work

yazh1202 commented 1 year ago

I have raised a PR #170 regarding this issue. Please review it and suggest changes if required.