For my final project at Flatiron school I was tasked with using all of my knowledge learned in the course to create a single page web app. The technologies that used to create this app where a Rails backend and a React/Redux front end. I created a hockey goalie tracking app where you can enter statistics while your watching a hockey game. There are four main routes in the app one to create a new game, one to enter data on the current game, list all stats for goalies, and list all games.
For this months project at flatiron school I was tasked with going back over my last project Storytime. Storytime is a full rails app, and add an api to the project along with ajax calls instead of reloading the page every time a button is pressed. Storytime allows users to sign up using their google account or creating a new account with email and password. Users can then upload a photo to start a new story or contribute to another story that is already started. The only catch is that you can only add one sentence at a time. After that the user needs to wait for someone else to post a sentence before they will be able to again.
The importance of using event listeners in java script cannot be stressed enough. Event listeners are responsible for all the fun things we can do on a webpage. For example click, keydown, keyup, mouseover, mouseout…. Without event listeners users would not be able to interact with websites and they would be pretty boring. Thankfully javaScript makes it easy for use to add event listeners to objects in the DOM. Open up the developer console on this page and enter.
For my third project at the flatiron school online web developer bootcamp. I chose to create a web app called storytime. Storytime allows users to sign up using their google account or creating a new account with email and password. Users can then upload a photo to start a new story or contribute to another story that is already started. The only catch is that you can only add one sentence at a time. After that the user needs to wait for someone else to post a sentence before they will be able to again. It will be very interesting to see what kind of stories people can come up with as a community.
For this tutorial I am going to show you to create a simple has_many through association using rails. Our Model will consist of 3 classes Paper, Paragraph, and Sentence.