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:
Model:
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
.
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: