Late-Night Routing

This week, I worked on building the MVP for my next Thinkful Capstone: HospitAlert. The app will allow users to stay up-to-date when a loved one is hospitalized.

Initially, I built the client-side app with mock data. The mock data was stored in the form of arrays which were declared and assigned within my client-side Javascript file. It was a good way to build my client quickly and establish the routes I’d need. I had a plan in place to build my database and routes.

I converted the arrays I created as mock data into JSON files to use as a seed for my Mongo database. After learning SQL/Sequelize, I realized that Mongo wasn’t quite as intuitive. Nonetheless, I built my database and was ready to add my routes. That’s when the fun began.

The first routes I built were standard GET requests for both of the collections in my database. They worked! I was excited. The next step was to add PUT requests. There was only one problem: they didn’t work.

I spent a while banging my head against the wall before meeting with my mentor, Rachel. I think it’s important to note that it was Friday night and we both had a long week. The following is a series of tweets that perfectly chronicle the evening:

Moral of the story: we solved the issue! My MVP went live shortly thereafter. Being able to work with a mentor has been extremely valuable. Rachel is constantly pushing me to make my code better. Plus, getting help when I’m stuck keeps me from giving up.

This upcoming week, I will be finishing up my Capstone project. Soon after that, I’ll start leaning React! As always, I’m very excited for what’s ahead.

Thanks for reading!

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.