Skip to content
~/caio.barilli
ENPT
← All projects
TypeScript

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.
  1. —

    TypeScript on both sides

    The Express API is written in TypeScript like the Angular client, so models and contracts are typed end to end.

  2. —

    Passport JWT and Joi

    Authentication through Passport's JWT strategy and request validation with Joi schemas.

  3. —

    Logs and e-mail as first-class parts

    Winston for structured logs, Multer for uploads and Nodemailer with Handlebars templates for e-mail.

05 · Screenshots

Architecture overview from the repository: Angular client, Node/Express API and MongoDB

06 · Links

Next projectNestAuth →
Diagram of the MEAN stack: browser client, JSON requests and the Node, Express and MongoDB server
Architecture overview from the repository: Angular client, Node/Express API and MongoDB