Notes Application Backend

Posted by Danielle Torres on February 22, 2021

I’m currently working on the Backend of my Notes Applications that will handle my data and passing to the front and what is passing in from the front to the back. I worked on the generating models, model relationships and table migrations using rails generators such as:

rails g model User name:string password:string;

Migration: Imgur

Model: Imgur

Next I started building out my controllers for Categories, Subjects, Users, and Notes. I tested by starting up the server using rails s-p 3001.

Imgur

I passed the data to the server as a JSON and was able to confirm everything appears to be working as expected so far. Next I will be starting on my front end to get the data to populate the DOM.

Example of JSON:

Imgur