cmda-bt / be-course-19-20

🎓 Backend · 2019-2020 · Curriculum and Syllabus
Other
18 stars 7 forks source link

Week 4 #247

Closed marcoFijan closed 4 years ago

marcoFijan commented 4 years ago

Package

Name

Marco Fijan

Class

Tech-5

Repo link

Mijn repo

Summary

Fi-na-lly made the connection to the database, after hours of hours of trouble, I found out that i put airquotes around the URI to my database. That's why it did wanted to push the data, but couldn't find any data. Discovered that only one (main) router here at home works for the database. The other ones wouldn't want to connect correctly for some reason Made more fluid seperate component templates Made a not found (404) page Made a function for inserting the data to the database made a function for getting (listing) the things from the database installed express-session Edited the index function so you first have to select a session before you can interact with the website Typed some TODO's / pseudo-code which explains how and what I want to do to make sessions possible.

Resources used

How to use POST requests How to use express-sessions What are closures

Any thoughts?

I had trouble understanding that the examples used a local database and we had to use an URI. I would have loved to know that the examples used a localhost database and we were not going to use that. I was struggling to understand what I had to do with the URI and the Localhost + PORT since mongo atlas didn't talk about the localhost and port. Today I finally got my database working after 4 stressfull days. I'm looking forward to continue working on them after my little mental breakdown I had yesterday (wednesday) when even my localhost wouldn't launch anymore.