Kronos API — Backend of the Kronos personal calendar app, built with NestJS + PostgreSQL.
REST API for the Kronos mobile app — a personal calendar with offline-first sync, color tags, and local notifications. Built with NestJS, Prisma, and PostgreSQL.
$ yarn install$ cp .env.example .envOpen .env and fill in the variables:
DB_USER=your_user
DB_PASSWORD=your_password
DB_NAME=mnemo
DATABASE_URL=postgresql://your_user:your_password@localhost:5434/mnemo?schema=public
ADM_EMAIL=your_admin_email
ADM_PASS=your_admin_password# First time — create and start the container
$ docker compose up -d
# After the first time — just start
$ yarn db:start$ yarn prisma migrate deploy$ yarn prisma generate$ yarn seed# Development
$ yarn start:dev
# Production
$ yarn start:prodThe API will be available at http://localhost:3000.
# Start the database container
$ yarn db:start
# Stop the database container
$ yarn db:stop
# Reset the database (WARNING: deletes all data)
$ yarn db:reset# Generate Prisma client
$ yarn prisma generate
# Create a new migration
$ yarn prisma migrate dev --name your_migration_name
# Apply pending migrations
$ yarn prisma migrate deploy# Development (watch mode)
$ yarn start:dev
# Debug mode
$ yarn start:debug
# Production
$ yarn start:prod# Unit tests
$ yarn test
# E2E tests
$ yarn test:e2e
# Test coverage
$ yarn test:cov