Skip to content

Conversation

marcorichetta
Copy link
Contributor

@marcorichetta marcorichetta commented May 27, 2025

Description

  • Part of Plan Databases module restructure #6
  • Moved content from legacy DB week 2/3 => They are week 1/2 here
  • Week 1: Reviewed week 1 content. Updated learning goals, created new assignments
  • Week 2: Created new content (Advanced DB functions, security, transactions, deployment)
    • Added materials to trainees' hyf-assigment-template repo to follow along this week session.

Status

  • Week 1
    • README
    • Learning goals
    • Preparation
    • Assignment
    • Session-plan
  • Week 2
    • README
    • Learning goals
    • Preparation
    • Session-plan
    • Assignment

Database modules overview

Modules in yellow are the ones worked in this PR
image

Relevant links

- moved content from legacy DB week 2/3
@marcorichetta marcorichetta changed the title Scaffolding of backend - db - week 2/3 Update database lesson material (Backend) May 27, 2025
@marcorichetta
Copy link
Contributor Author

marcorichetta commented May 27, 2025

I just pushed it because I had already started locally but will not be working on it now.
Feel free to ask if you want to work on it.

- moved nosql, m2m relations and aggregate functions to week 2
@marcorichetta marcorichetta self-assigned this Jul 23, 2025
…o the point

- add vscode extension
- fixed link to json file
@marcorichetta
Copy link
Contributor Author

Locally, prettier is fine, but it's complaining on CI.
I ran ./lint --fix but nothing changes.

Comment on lines +290 to +307
## 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
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@adamblanchard
Copy link
Contributor

Locally, prettier is fine, but it's complaining on CI. I ran ./lint --fix but nothing changes.

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)

Copy link
Contributor

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.

Copy link
Contributor Author

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
Copy link
Contributor

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

@adamblanchard
Copy link
Contributor

@marcorichetta to:

  1. Review outstanding comments and update the PR description with a summary if needed
  2. Check where the api code should live (hyf-assignment-repo?)
  3. Fix linting and conflicts
  4. Share any ideas for missing assignment

I'll create a separate task for the missing assignment after we merge this :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

4 participants