Project developed with the objective of deepening knowledge in Java using the Spring Boot framework, applying the principles of clean architecture and exploring communication between microservices.
Image below shows the database modeling
This repository is still a work-in-progress. Here's the current progress:
- Configuration
- Data structure definition
- Migration structure definition
- Domain structure definition
- Infrastructure structure definition
- Test structure definition
- Resources
- Users
- Register
- Validate account
- Reset password
- Access blocking
- Authentication
- Token validation
- Token renewal
- Authentication session
- Session limiter active per user
- Invalidate active session
- List with all active sessions
- Authorization/Permissions
- Access group registration
- Register of permitted actions
- Access group registration
- Organization
- Register
- Access blocking
- Send emails
- User activation
- Confirmation of new registration
- Password reset
- Configuration
- Email Settings
- Files Storage
- Backups
- Logs
- Metrics
- Export/Import data
- Users
- Event listeners
- Register organization
- ???
- Deployment
- Download the repository
git clone [email protected]:mr4torr/saas-auth.git; - Make a copy of the
.env.examplefile and place it as.env; - Create a docker-compose.yml file, this file is used to run the database.
- Run
docker compose up -dand then run./mvnw spring-boot:run - Go to
http://localhost:8080to access the API.- Access
http://localhost:8080/swagger-ui.htmlto view the API documentation.
- Access
- Go to
./doc/httpto see all mapped endpoints
version: '3.8'
services:
postgres:
image: postgres:17.4-alpine
container_name: saas_db
environment:
POSTGRES_DB: saas
POSTGRES_USER: postgres
POSTGRES_PASSWORD: root
ports:
- "5432:5432"
restart: always