Contact
← All projects

Backend & APIs · API · iOS · Open source

NeuroCycle

A migraine diary shared with your doctor.

REST API for a migraine-tracking health app: 18 resource groups with role-based access for patients, doctors, and admins, deployed as a single AWS Lambda.

Stack
  • Node.js
  • Express
  • TypeScript
  • MongoDB
  • AWS Lambda
Focus
Domain modeling · Security · Serverless
Platforms
API · iOS

01 — Context

The problem

People with chronic migraine need a structured diary — attacks, mood, medication — that their doctor can follow.

02 — Decisions

The approach

Factories produce typed services, controllers, and routers for simple resources, while domain-heavy ones get custom services. Role helpers resolve the caller’s profile so controllers never trust IDs from the body.

03 — What’s inside

Key features

  • Patients, doctors, and admins with role-based access
  • Attacks, mood entries, medication schedules, and intakes
  • Appointments, recommendations, and questionnaires
  • Password reset revokes all active sessions

Scope & constraints

The iOS client source is private.