Database within the Art Viewer
Exercise 1
The application contained in the ex-1/app.R
is the same as what we built in the reactivity code-along activity. But now it is time to pivot our backend to leverage a robust database stored as a SQLite file.
Here are the tasks to complete for this exercise:
- Instead of loading the input data via an RDS file, switch to a database connection using the aforementioned SQLite file.
- Utilize a table in the database called
choice_data
to store the metadata associated with the user’s decision for liking or rejection an art piece. The data should have the following variables:user
,img_file
,decision