Skip to content

Latest commit

 

History

History

Session 6

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Session 6

📖 Overview

In today's session, we learned the essentials of both handlers and models.

We dove deep into some critical and important SQL knowledge.

We moved further into realizing our vision of applying all the project requirements.

We created models for our tables that retrieved the data we want in a way that made sense.

We also created handlers to regulate outside communication with our models in a cohesive way.

We used the correct methods to connect our handlers with our methods and allowed logical communication with our server.

We finally learned about JWT and tokens in a visual way that represented a user's journey through our website from authentication to authorization.

✍️ Quiz

📝 Notes

Data Migration

A data migration file is included with the project in:

/data_migration/initialization.sql

That includes several entries that you can use to experiment with the project.

Please run the following command after running the schema migrations

psql -U USER -d DB -a -f  PATH

And replace the following keywords:

USER with your postgreSQL user ex: postgres

DB with your database name ex: udacity_hub

PATH with your data migration file path ex: C:\Udacit-Hub\data_migrations\initialization.sql

Or cd into the directory of the script and then just using the name of the script.

So the end result is something like this:

psql -U postgres -d udacity_hub -a -f initialization.sql

🔗 Resources

🔗 Essentials