MLB Scouting Report — Sinatra Project

Luis Castillo
3 min readApr 6, 2021

--

One more time I’m here for my second Blog Post Sinatra project for Flatiron School. In this project I have a lot of fun, this is my first own project made from scratch. When we finish the CLI project I was excited for this moment to come, I love web development, and the fact that I was able to make my first Web app from scratch makes me so proud of what I have accomplished.

This project helped me a lot to understand a lot more about the code and what the code is doing. I’m a person that learns by doing stuff in real-time. When I’m doing the labs and when I’m taking the live class I get to understand what the professor is talking about and sometimes not. I get confused with come code but I least I try to understand what is the code for.

MLB Scouting Report is a web app that can help scouts to create a digital report of a player and they can have this report to their account. The user can register with their preferred username and password and have their account. They can see every report that the user post they can also edit the report that belongs to them and delete it if they want as well.

Let me talk about how this app was built. First, this app was built with Ruby, SQLite, HTML, CSS, and Bootstrap. I used the corneal gem to pre-start my app. the Corneal recreates the Model, View, and Controller (MVC) for your application and more folders like DB folder, Public, Config, config.ru file, and more file that is necessary to have your application live.

CREATE (ROUTE)

One of my challenges creating the CRUD in my application was the (C) as CREATE. This block of code said that if any of my input from the user is empty redirect them to create the post again else if they don’t have any empty fields create them with the user_id and save them and redirect them to the reports page with the id of the report that they create. My challenge trying to save the user_id with the input I was getting from the user and I was able to get it to work with the line of code @report.user_id = session[:user_id], this allow me to have every report that was created to make that report to belong to one person the user_id that create the report.

My web app has more improvement to make which I’m excited to continue to work on it and I want to be able to complete it with more styling and more feature so that the user can print this report in PDF when they are created and also they can be able to send this reports to friends or even to a professional Scout in the MLB. I have so much fun building this app that I’m excited to continue learning and I want to give my 200% to become a great developer. I want to thank My school Flatiron School, all my cohort mates that help me out and my cohort lead Dj_Ritchey for all his support.

--

--

Luis Castillo
Luis Castillo

Written by Luis Castillo

Software Engineer at Lowe's Companies, Inc.

No responses yet