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

Storing and Handling API Responses #4

Open
2 of 3 tasks
victoriajury opened this issue Oct 6, 2024 · 1 comment
Open
2 of 3 tasks

Storing and Handling API Responses #4

victoriajury opened this issue Oct 6, 2024 · 1 comment
Assignees

Comments

@victoriajury
Copy link
Owner

victoriajury commented Oct 6, 2024

Goal: Cache the most recent exchange rates to allow offline use.

Steps:

  • Create a Local Storage System: Use SQLite or file-based storage to store exchange rates for offline access.
  • Write to the Database: After fetching real-time data, store it with a timestamp in the database.
  • Handle Offline Mode: When offline, retrieve and use the most recently stored rates.
@victoriajury
Copy link
Owner Author

How to split the code into multiple files/includes:
https://bhattaca.github.io/cse2122/lecture/splitting-code.html

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

When branches are created from issues, their pull requests are automatically linked.

1 participant