Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor/aws integration #100

Merged
merged 18 commits into from
Jun 7, 2024
Merged

Refactor/aws integration #100

merged 18 commits into from
Jun 7, 2024

Conversation

Manjish
Copy link
Contributor

@Manjish Manjish commented Feb 26, 2024

  • Added AWS Services
  • Added Cognito Auth Middleware
  • Added Admin Seed to Cognito
  • Changed upload middleware from Google Bucket to AWS S3
  • Added Amazon SES

API Information

Endpoint Method Description
/api/upload-test POST Uploads the image to Amazon S3 and returns presigned URL
/api/send-test-email POST Sends email with Subject and Body to the provided email from Amazon SES

Copy link
Contributor

@Denes-cilwal Denes-cilwal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Manjish Let remove this cognito and upload file implementation. Adding up only and services is ok 🙏🏾

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Manjish Let's remove this as auto migrate invocation and stick to writing migration for schema.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will be fixed by #114

Comment on lines 22 to 25
// For AutoMigrating (used in fx.Invoke)
func Migrate(r Repository) error {
r.logger.Info("[Migrating...User]")
if err := r.DB.AutoMigrate(&models.User{}); err != nil {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let revert these changes ! @Manjish

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will be fixed by #114

@paudelgaurav
Copy link
Member

Please merge #114 before merging this PR

Copy link
Contributor

@Denes-cilwal Denes-cilwal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀

@Denes-cilwal Denes-cilwal merged commit e8c4429 into develop Jun 7, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants