Implement backend API and database services in Docker setup
- Added a new `api` service for the NestJS backend, including health checks and dependencies on PostgreSQL, Redis, and MinIO. - Introduced PostgreSQL and Redis services with health checks and configurations for data persistence. - Added MinIO for S3-compatible object storage and a one-shot service to initialize required buckets. - Updated the Nginx configuration to proxy requests to the new backend API and MinIO storage. - Enhanced the Dockerfile to support the new API environment variables and configurations. - Updated the `package.json` and `package-lock.json` to include new dependencies for QR code generation and other utilities. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
36
backend/src/season/season.module.ts
Normal file
36
backend/src/season/season.module.ts
Normal file
@@ -0,0 +1,36 @@
|
||||
import { Module } from '@nestjs/common';
|
||||
import { TypeOrmModule } from '@nestjs/typeorm';
|
||||
import { SeasonService } from './season.service';
|
||||
import { Season } from './entities/season.entity';
|
||||
import { SeasonRent } from './entities/season-rents.entity';
|
||||
import { SeasonController } from './season.controller';
|
||||
import { SeasonRentsService } from './season-rents.service';
|
||||
import { SeasonRentsController } from './season-rents.controller';
|
||||
import { Shareholder } from 'src/contents/entities/shareholder.entity';
|
||||
import { RentsGateway } from 'src/events/rents.gateway';
|
||||
import { EventsModule } from 'src/events/events.module';
|
||||
import { Discount } from 'src/discounts/entities/discount.entity';
|
||||
import { DiscountRedemptionService } from 'src/discount-redemption/discount-redemption.service';
|
||||
import { DiscountRedemption } from 'src/discount-redemption/entities/discount-redemption.entity';
|
||||
|
||||
@Module({
|
||||
controllers: [SeasonController, SeasonRentsController],
|
||||
imports: [
|
||||
TypeOrmModule.forFeature([
|
||||
Shareholder,
|
||||
Season,
|
||||
SeasonRent,
|
||||
Discount,
|
||||
DiscountRedemption,
|
||||
]),
|
||||
EventsModule,
|
||||
],
|
||||
providers: [
|
||||
SeasonService,
|
||||
SeasonRentsService,
|
||||
DiscountRedemptionService,
|
||||
RentsGateway,
|
||||
],
|
||||
exports: [SeasonService, SeasonRentsService],
|
||||
})
|
||||
export class SeasonModule {}
|
||||
Reference in New Issue
Block a user