-
Notifications
You must be signed in to change notification settings - Fork 0
Ft nest version #7
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
Open
CabralArthur
wants to merge
10
commits into
develop
Choose a base branch
from
ft-nest-version
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Completely restructured the project architecture from Express to NestJS - Replaced Sequelize with TypeORM for database management - Migrated authentication, user, and core modules to TypeScript and NestJS - Added new configuration modules for environment validation and app settings - Removed legacy JavaScript files and introduced TypeScript-based modules - Updated project structure to follow NestJS best practices and conventions - Implemented Swagger documentation and improved type safety - Removed old migration and seeder files in favor of TypeORM migrations
- Renamed project to 'node-saas-base-api' in package files - Updated TypeORM migration scripts in package.json - Created new TypeORM configuration file (typeOrm.config.ts) - Removed old database configuration and migration files - Generated a new initial migration for the users table - Simplified AppModule by removing unnecessary module imports - Updated AuthService to remove wallet-related references - Added SSL configuration to DatabaseModule
- Integrated SendGrid email service for sending password reset emails - Created EmailModule and EmailService to handle email sending - Added UserRecoverPassword entity to track password reset tokens - Implemented password reset request, validation, and reset endpoints in UserController - Added new DTOs for password reset request and reset operations - Updated environment validation to include SendGrid and email configuration - Configured email sending with dynamic base URL and sender email
- Added Team and Member entities to support multi-team functionality - Implemented TeamModule with basic team management services - Enhanced UserService with team-aware user creation, update, and deletion - Introduced AdminGuard and SelfOrAdminGuard for role-based access control - Updated AuthService to handle team membership during login - Modified User entity to include active team tracking - Created new migrations for teams, members, and user active team support - Removed deprecated password reset DTOs and moved functionality to AuthService
- Added registration endpoint in AuthController with validation - Updated AuthService to handle user and team creation during registration - Modified guards to use uppercase role constants (ADMIN, MEMBER) - Relocated password reset DTOs to auth module - Added Team entity to AuthModule's TypeORM configuration - Included ConfigService in AuthModule providers
- Added role field to CreateUserDto for flexible user role specification - Modified UserController to automatically assign team_id and default role during user creation - Updated UserService to handle user creation with team membership and default 'MEMBER' role - Improved findById method in UserService to handle soft-deleted users and add explicit not found error
- Extended UpdateUserDto with new_password and confirm_new_password fields - Updated UserService to implement password change validation - Added password verification before allowing password updates - Ensured new password and confirmation match before processing - Implemented secure password hashing during update process
- Implemented switchTeam endpoint in AuthController - Created SwitchTeamDto for team switching validation - Updated AuthService to generate new JWT token with updated active team - Added team membership verification before allowing team switch - Included proper error handling for unauthorized team switches
- Implemented switchTeam endpoint in AuthController - Created SwitchTeamDto for team switching validation - Updated AuthService to generate new JWT token with updated active team - Added team membership verification before allowing team switch - Included proper error handling for unauthorized team switches
- Created subscription module with entities for Plans, Subscriptions, and Payments - Implemented SubscriptionService for handling trial subscriptions, checkout, and plan management - Added WebhookService to process Stripe webhook events for subscription lifecycle - Integrated Stripe checkout and subscription management in AuthService during team creation - Created migration for subscription-related database tables - Added seed script to initialize default subscription plans - Configured Stripe integration with environment-based configuration
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.