MEAN
Full-stack app with an Express API in TypeScript and an Angular Material front end, with MongoDB and Docker Compose. Built in the MEAN Stack Guide course.
- Year
- 2023
- Type
- Study project
- Status
- Complete
01 · Problem
Practise a typed full-stack app end to end, from authentication to e-mail.
02 · Solution
A TypeScript Express API with Passport JWT, Joi validation, Winston logging, file uploads with Multer and templated e-mails with Nodemailer, plus an Angular Material client. Mongo, API and front end run together in Docker Compose.
03 · Stack
- TypeScript
- Express
- Angular
- Angular Material
- MongoDB / Mongoose
- Passport JWT
- Docker
04 · Architecture decisions
The decisions that shaped the project.- —
TypeScript on both sides
The Express API is written in TypeScript like the Angular client, so models and contracts are typed end to end.
- —
Passport JWT and Joi
Authentication through Passport's JWT strategy and request validation with Joi schemas.
- —
Logs and e-mail as first-class parts
Winston for structured logs, Multer for uploads and Nodemailer with Handlebars templates for e-mail.