Skip to content

DarjaElina/fullstack_part9

Repository files navigation

Full Stack Open – Part 9: TypeScript

This repository contains my personal study project for Part 9: TypeScript of the Full Stack Open course.

🎯 What This Part Is About

Part 9 is all about learning TypeScript, a typed superset of JavaScript developed by Microsoft that compiles to plain JS. The focus is on building full-stack features using TypeScript both on the backend (Node + Express) and frontend (React), while working with real-world tools like linters, data validation libraries, and predefined codebases.

This part was created by Tuomo Torppa, Tuukka Peuraniemi, and Jani Rapo from Terveystalo, the largest private healthcare service provider in Finland.

💡 What I Learned

Here’s a short overview of each section and what I learned from it:

a. Background and Introduction

  • Why TypeScript exists and how it helps catch errors early
  • Benefits of static typing in large applications
  • TypeScript’s relationship with JavaScript

b. First Steps with TypeScript

  • How to set up a TypeScript environment
  • Basic type annotations: primitives, arrays, tuples, enums, unions
  • How to write and use custom types and interfaces

c. Typing an Express App

  • How to apply types in an Express backend
  • Typing route parameters, request bodies, and responses
  • Creating reusable types for data models
  • Validating incoming data using the zod library

d. React with Types

  • How to type React components, props, and useState/useEffect hooks
  • Working with event types and forms
  • Creating type-safe components and reusable types for props

e. Grande Finale: Patientor

  • A full-stack TypeScript app where I got to combine everything
  • Built a frontend with React + TypeScript and backend with Express + TypeScript
  • Used zod to validate data at runtime
  • Practiced working in a larger codebase with strict typing and multiple modules

🛠️ Tools & Technologies Used

  • TypeScript
  • React
  • Express
  • Zod for data validation
  • ESLint with strict rules
  • Visual Studio Code for development

📁 About This Repo

This repo includes both backend and frontend code. I’ve tried to follow best practices and focus on writing clear, typed, and maintainable code. The project helped me better understand how TypeScript fits into a full-stack application and gave me more confidence working with both frontend and backend TypeScript projects.


Thanks for checking it out! 💙

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published