Skip to content

Commit c28f3ba

Browse files
committed
Merge branch 'master' of github.com:Zaiidmo/eventify-API
2 parents 2f2b59d + eb5ad95 commit c28f3ba

4 files changed

Lines changed: 12 additions & 4 deletions

File tree

.env.example

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,8 @@ JWT_REFRESH_SECRET=your_jwt_refresh_secret_here
1313
JWT_EXPIRES_IN=1h
1414
JWT_REFRESH_TOKEN_EXPIRES_IN=7d
1515
JWT_ACCESS_EXPIRES_IN=15m
16+
# AWS S3 Configuration
17+
AWS_ACCESS_KEY_ID=your_aws_access_key
18+
AWS_SECRET_ACCESS_KEY=your_aws_secret_key
19+
AWS_REGION=your_s3_region
20+
AWS_S3_BUCKET_NAME=eventify-assets

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ Built on **NestJS** and **MongoDB**, it’s fully containerized for scalability
2727
- 🔐 **User Authentication** — Secure JWT-based login and registration.
2828
- 🗓️ **Event Management** — Create, edit, and explore events effortlessly.
2929
- 🧩 **Database Integration** — Seamless data persistence via **Mongoose**.
30+
- ☁️ **Cloud Storage (AWS S3)** — Secure upload and retrieval of event images with automatic URL generation.
3031
- 🐳 **Dockerized Architecture** — Ready-to-deploy image for any environment.
3132
- ⚙️ **CI/CD Pipeline** — GitHub Actions automate testing, building, and Docker deployment.
3233

src/modules/auth/auth.repository.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@ export class AuthRepository {
1414
}
1515

1616
async create(userData: RegisterDto): Promise<UserDocument> {
17-
const newUser = new this.userModel(userData);
18-
return newUser.save();
17+
// const newUser = new this.userModel(userData);
18+
// return newUser.save(); //Commented to host the demo app
19+
throw new Error('User registration is disabled in the demo application.');
1920
}
2021

2122
async updateLastLogin(userId: string): Promise<void> {

src/modules/registrations/registrations.repository.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@ export class RegistrationRepository {
1414
async create(
1515
createRegistrationDto: CreateRegistrationDto,
1616
): Promise<RegistrationDocument> {
17-
const registration = new this.registrationModel(createRegistrationDto);
18-
return registration.save();
17+
// const registration = new this.registrationModel(createRegistrationDto);
18+
// return registration.save(); //Commented to host the demo app
19+
throw new Error('Event registration creation is disabled in the demo application.');
1920
}
2021
async findOne(filter: {
2122
user: string;

0 commit comments

Comments
 (0)