-
Notifications
You must be signed in to change notification settings - Fork 3
Update database lesson material (Backend) #92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
- moved content from legacy DB week 2/3
I just pushed it because I had already started locally but will not be working on it now. |
- moved nosql, m2m relations and aggregate functions to week 2
… with sqlite - made focus on creating a DB (provided) - CRUD SQL - working with relations - adding new columns and tables
…o the point - add vscode extension - fixed link to json file
- include venn diagrams of sql joins
…syntax on examples
Locally, prettier is fine, but it's complaining on CI. |
## EXERCISE 4: Design and implement a database for existing data | ||
|
||
Design an ER model and implement the respective database for the data in [this file](session-materials/articles_example.json). | ||
|
||
Remember: | ||
|
||
- Don't worry if you can't do every step perfectly. | ||
- The important thing is to understand the main ideas. | ||
- Take your time and ask questions if you're confused. | ||
|
||
### Steps | ||
|
||
1. Analyze the JSON structure | ||
2. Identify entities and relationships | ||
3. Create an ERD | ||
4. Translate to CREATE TABLE statements | ||
5. Insert sample data | ||
6. Write queries to retrieve information |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If there's not enough time for this exercise or it's too much for this class, this could be used as an assignment for week 2.
They did that for week2/3 the last time
- https://github.com/HackYourFuture-CPH/databases/blob/main/lesson3/README.md#start-the-homework
- https://github.com/maxdron123/team32-homework/pull/9/files#diff-41c0eb293f24b6772351ffa51211035deb18a3a24770979bfb2d8ffb4812b2e7
- https://github.com/Anitanersesyan/team32-homework/pull/13/files#diff-2770ed572a499cdab93a7c5566584fde6b4d641151cbccbec99f0839f1b05930
I had to run npm install again, and that fixed it for me. Let me know if that doesn't help. |
|
||
> [!NOTE] | ||
> Trainees should have their `tasks.sqlite3` database from Week 1 ready to use with a GUI tool. [Tools setup - Week 1](../week1/preparation.md#tools-setup) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make explicit how the session should be organised e.g. what the mentor should run on their machine/screen, and what the trainees will do on their own machine.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added clearer instructions commit 116a453
(#92) and copied example-api
in trainees repo HackYourFuture-CPH/hyf-assignment-template#34
|
||
### Production Deployment | ||
|
||
- Show how to migrate data from local SQLite database to PostgreSQL in render.com |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Expand on these instructions in the eyes of the mentor understanding what to do/teach
@marcorichetta to:
I'll create a separate task for the missing assignment after we merge this :) |
Description
Status
Database modules overview
Modules in yellow are the ones worked in this PR

Relevant links