A full-stack todo application built with Express, React, and PostgreSQL.
- Node.js (v18+)
- PostgreSQL
server/ Express REST API (TypeScript)
client/ React frontend (Vite + TypeScript)
npm installCreate a PostgreSQL database:
createdb ralph_todosCopy the example environment file and adjust if needed:
cp server/.env.example server/.envThe defaults in .env.example assume PostgreSQL is running locally on port 5432 with user postgres.
psql -d ralph_todos -f server/src/schema.sqlStart the server:
npm run dev --workspace=serverStart the client (in a separate terminal):
npm run dev --workspace=clientThe client proxies API requests to the server at http://localhost:3001.
Run all root-level tests:
npm testRun server tests:
npm test --workspace=serverRun client tests:
npm test --workspace=client