cmda-bt / be-course-18-19

🎓 Backend · 2018-2019 · Curriculum and Syllabus
https://cmda-bt.github.io/be-course-18-19/docs
Other
15 stars 10 forks source link

Storage (Feature) #132

Closed StephanKop closed 5 years ago

StephanKop commented 5 years ago

Storage

Name

Stephan Kop

Class

Tech 3

Repo link

https://github.com/superstephan1/Project-Tech

Summary

Created a database with 3 collections. Login data which stores the used login form information. avatar data which stores the data from the avatar profiles and the reg1 collection which stores all the user data from the registration forms.

Resources used

https://www.youtube.com/watch?v=pWbMrx5rVBE this video helped me understand the functionality of mongodb.

Any thoughts?

At first i stored all my userdata in 3 different collections from forms on 3 different pages. However i reworked my functions to use updateOne() instead of insertOne(). now i have all my userdata stored in 1 collections which is easier to pass to a variable and access throughout my project.