Projects

API Starter

An Express API foundation with authentication, validation, MongoDB and API tests.

TypeScriptExpressMongoDBJest
Illustrated route diagram cover for API Starter.

A modular Node.js API starter separating routes, controllers, services and database access. It includes JWT authentication, user validation, password hashing, request logging, error handling and a test suite for user operations.

What’s included

  • User registration, login and authenticated profile routes.
  • Validation, password hashing and data-transfer mapping.
  • Database adapter and test database support.
  • Request logging and container configuration.

Inside the repository

Application entrypointsrc/index.tsUser servicesrc/services/user.service.tsAPI teststests/user.test.ts