Skip to content
/ api Public

Backend API for Readmigo - AI-powered English reading companion

License

Notifications You must be signed in to change notification settings

readmigo/api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

293 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Readmigo API

CI Deploy API CodeQL

Backend API service for Readmigo - AI-powered English reading companion.

Tech Stack

  • Framework: NestJS
  • Database: PostgreSQL (Neon)
  • ORM: Prisma
  • Cache: Redis (Upstash)
  • Storage: Cloudflare R2
  • AI Providers: OpenAI, Anthropic Claude, Deepseek, Qwen (see AI_FEATURES.md)

Project Structure

├── src/
│   ├── common/          # Shared utilities, guards, interceptors
│   ├── modules/         # Feature modules
│   │   ├── ai/          # AI services (word explain, translate, etc.)
│   │   ├── auth/        # Authentication (JWT, OAuth)
│   │   ├── books/       # Book management
│   │   ├── reading/     # Reading progress tracking
│   │   ├── vocabulary/  # Vocabulary learning
│   │   └── ...
│   └── i18n/            # Internationalization
├── packages/
│   ├── database/        # Prisma schema and migrations
│   └── shared/          # Shared types and constants
└── scripts/             # Data processing scripts

Online Services

Environment URL
Production https://readmigo-api.fly.dev

Development

# Install dependencies
pnpm install

# Setup environment
cp .env.example .env

# Run database migrations
pnpm prisma migrate dev

# Start development server
pnpm dev

Deployment

Deployment is automated via GitHub Actions. Push to main branch triggers production deployment.

# Manual deployment (if needed)
fly deploy -c fly.production.toml

About

Backend API for Readmigo - AI-powered English reading companion

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors