Building an App with Sinatra and ActiveRecord

//
1 min readJan 4, 2021

In light of the new year, I decided to make a Goals App to allow users to record their new years resolutions as well any progress they have made.

I used Sinatra to build the app, and ActiveRecord for storing information in the database. I created the classes: Goal Entries and Users. The relationship I built out was that a User has many goal entries, and a goal entry belonged to a User. My app allows you to create user accounts with unique login attributes. My belongs- to resource has routes for creating, reading, updating, and destroying. Users can’t modify content created by other users.

I am looking forward to adding stretch goals to this project, including the option to make the app public or private, two different lists, a sort by function, etc.

The repo for Goals app can be found here.

--

--