Skip to content

Back end of full-stack blog created with Express and MongoDB for CS52: Full-Stack Web Development.

Notifications You must be signed in to change notification settings

dartmouth-cs52-20S/lab5-platform-api-samihadatta

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CS 52, Lab 5: Platform API

Samiha Datta, May 2020

Part 1

Description

This lab was really interesting! While I was reasonably confused (although not as much as last time) for a while, I learned a lot and I now understand server-side concepts a whole lot better! I went through each part of the lab instructions in order: setting up express, mongo, and mongoose; creating a model; setting up the framework of the controller; routing; testing the routes to make sure it was connected; getting all endpoints working; testing with the client locally; and then transitioning to Heroku and testing with the client that way. I think this process worked well! As always, I think I should have started sooner, but I have a little more time now that I'm using my extension.

What Worked

I think the process of going through each step methodically and creating structured checklists worked really well. Also, testing at many intervals during the process using curl and, especially, Insomnia meant that the code worked well in individual parts and that I felt more confident about things working together.

What Didn't Work

I had a fair number of obscure errors due to some very silly mistakes such as passing in res and req from the router, including a backslash at the end of the root url ini my client, and failing to hook things up correctly. However, I think going through each problem, attacking it, and discussing with TAs whenever I was unsure about something worked well.

Extra Credit (laid out in an extra easy to find way)

I changed the format of tags from strings to arrays. I also completed functionality for comments and a basic search! In the future, I'd like to populate this blog a bit more so that there's more for the search to work with; I'd like to make the search more complicated; I'd like to update the frontend so that it's easier to work with these different features and more cohesive; I'd like to incorporate routing into the search; and I'd like to add frontend tag filtering.

Part 2

Description

I've never been so confused in this class. It was really cool to learn about, but I definitely need to go back and take a proper look at these concepts again before the final project. I went through the lab in order, from setting up the backend to the front. I had some odd errors and couldn't get help at TA hours twice, so I had to keep moving instead of testing it the way I should've. This process meant that I got it done, but starting earlier would've definitely helped. This extension was very necessarily used.

What Worked

Pushing forward even though things weren't working, trying to get as much stuff up as possible, and working under the assumption that I wouldn't be receiving help at office hours was painful but effective. Using Insomnia was great, and just trying to persevere worked best of all.

What Didn't Work

Most of what I tried, to be honest. I wish I knew more Mongoose, because I kept getting stuck in places based on little tweaks based on the methods that I picked from the documentation. I definitely need to brush up on this before the final project!

Extra Credit

I attempted some error handling and permissions limitations!

About

Back end of full-stack blog created with Express and MongoDB for CS52: Full-Stack Web Development.

Resources

Stars

Watchers

Forks

Packages

No packages published