
✨ Features: - 🤖 Telegram bot for task management between programmer and girlfriend - 📝 Task creation with types (personal/shared) and priorities - ⏰ Time-based reminders and notifications - 📊 Statistics and progress tracking - 🤝 Shared tasks for couples 🛠 Tech Stack: - Backend: NestJS + TypeScript - Database: PostgreSQL + TypeORM - Bot: Telegraf - Deployment: Docker + Docker Compose 🐳 Docker Deployment: - Multi-stage Dockerfile for optimized builds - Docker Compose with environment variables - Health checks and automatic restarts - Production-ready configuration 📦 Files included: - Complete NestJS application - Docker deployment configuration - Environment variables setup - Deployment scripts and documentation - Health monitoring and logging
41 lines
1.1 KiB
TypeScript
41 lines
1.1 KiB
TypeScript
import { Module } from '@nestjs/common';
|
|
import { TypeOrmModule } from '@nestjs/typeorm';
|
|
import { ScheduleModule } from '@nestjs/schedule';
|
|
import { ConfigModule } from '@nestjs/config';
|
|
|
|
import { AppController } from './app.controller';
|
|
import { AppService } from './app.service';
|
|
|
|
// Entities
|
|
import { User } from './entities/user.entity';
|
|
import { Task } from './entities/task.entity';
|
|
|
|
// Services
|
|
import { UserService } from './services/user.service';
|
|
import { TaskService } from './services/task.service';
|
|
import { TelegramBotService } from './services/telegram-bot.service';
|
|
import { ReminderService } from './services/reminder.service';
|
|
|
|
// Config
|
|
import { databaseConfig } from './config/database.config';
|
|
|
|
@Module({
|
|
imports: [
|
|
ConfigModule.forRoot({
|
|
isGlobal: true,
|
|
}),
|
|
TypeOrmModule.forRoot(databaseConfig),
|
|
TypeOrmModule.forFeature([User, Task]),
|
|
ScheduleModule.forRoot(),
|
|
],
|
|
controllers: [AppController],
|
|
providers: [
|
|
AppService,
|
|
UserService,
|
|
TaskService,
|
|
TelegramBotService,
|
|
ReminderService,
|
|
],
|
|
})
|
|
export class AppModule {}
|