{"id":25709517,"url":"https://github.com/amira921/todo-website-spring-angular","last_synced_at":"2026-04-09T21:02:12.731Z","repository":{"id":237649077,"uuid":"737901302","full_name":"amira921/Todo-Website-Spring-Angular","owner":"amira921","description":"This project follows a microservices, client-server architectures, consisting of separate services for authentication and managing to-do items, each exposing RESTful APIs","archived":false,"fork":false,"pushed_at":"2025-02-14T21:18:20.000Z","size":37182,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-14T22:23:35.652Z","etag":null,"topics":["eureka-server","full-stack","html-css-javascript","java-mail-api","junit5","microservices","mockito","mysql","postman","restful-api","spring-boot","spring-cloud","spring-data-jpa","spring-mvc","thymeleaf","validation"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/amira921.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-01-01T22:40:36.000Z","updated_at":"2025-02-14T21:18:23.000Z","dependencies_parsed_at":"2024-12-23T19:34:47.457Z","dependency_job_id":null,"html_url":"https://github.com/amira921/Todo-Website-Spring-Angular","commit_stats":null,"previous_names":["amira921/todo-list-microservices","amira921/todo-website-spring-angular"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amira921%2FTodo-Website-Spring-Angular","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amira921%2FTodo-Website-Spring-Angular/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amira921%2FTodo-Website-Spring-Angular/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amira921%2FTodo-Website-Spring-Angular/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amira921","download_url":"https://codeload.github.com/amira921/Todo-Website-Spring-Angular/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240641724,"owners_count":19833878,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["eureka-server","full-stack","html-css-javascript","java-mail-api","junit5","microservices","mockito","mysql","postman","restful-api","spring-boot","spring-cloud","spring-data-jpa","spring-mvc","thymeleaf","validation"],"created_at":"2025-02-25T09:33:45.142Z","updated_at":"2026-04-09T21:02:12.668Z","avatar_url":"https://github.com/amira921.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n   \u003ch2\u003e\n      \u003ca href=\"https://github.com/amira921/Todo-Website-Microservices-Angular\" style=\"text-decoration: none;\"\u003e\n         🚀 Project Refactoring\n      \u003c/a\u003e\n   \u003c/h2\u003e\n\u003c/div\u003e\n\n\n# Todo-List-Microservices\nThis project follows a  microservices, client-server architectures, consisting of separate services for authentication and managing to-do items, each exposing RESTful APIs.\n\n\u003cdiv align=\"center\"\u003e\n   \u003ch2\u003e🚀 Demo\u003c/h2\u003e\n   \u003ca href=\"https://drive.google.com/file/d/1oQOSAmZKEzCw7c-x5yrKS_8traggIklm/view?usp=sharing\" target=\"_blank\"\u003e\n      \u003cimg src=\"assets/website-home.PNG\" alt=\"Demo\" style=\"border-radius: 10px; width: 70%; max-width: 600px;\" /\u003e\n   \u003c/a\u003e\n\u003c/div\u003e\n\n# Application Architecture\n- **discovery-service** - Eureka server\n- **api-gateway** - API gateway that proxies all the micro-services\n- **authentication-service** - user authentication microservice\n- **task-service** - task management microservice\n- **web-portal** - client Application that provides the UI\n\n# Getting Started\n- Clone the repository: `git clone https://github.com/amira921/Todo-List-Microservices `\n- Navigate to the project directory: `cd ./Todo-List-Microservices`\n- Start Apache, MySQL, from Xampp\nInstall dependencies: mvn install\n- Update application.properties files\n- Run discovery-service project\n- Run api-gateway project\n- Run authentication-service project\n- Run task-service project\n- Run web-portal project\n\n# Microservices Overview\n## 1. Authentication Service\n### Features\n**1. Registration Process**\n   - User provides email, password, and username.\n   - Verification email is sent to the provided email address.\n   - User is required to navigate to the verification link included in the email to activate the account.\n   - **Without activating the account through the provided link**, the user cannot log in.\n\n**2. Authentication Process**\n- User provides email and password.\n- **If the account is not found**, the user cannot access the app and needs to register.\n- **If the account is found but not active**, the user cannot access the app and needs to check the inbox for activation instructions.\n- **If the account is found, active, and the password is incorrect**, the user cannot access the app and needs to try again or reset the password.\n- **If the account is found, active, and the password is correct**, the user can access the app.\n\n**3. Reset Password Process**\n- User provides their email address.\n- **If the account is not found**, the user cannot access the app and is prompted to register.\n- **If the account is found**, a password reset email is sent to the provided email address.\n- User receives an email with link to reset their password and clicks on the link provided.\n- **Token is expired after 30 minutes, if it expired**, user can't reset the password and need to send another request\n- **If token is valid**, user is directed to a page where they can enter their email address and set a new password.\n- After submitting the new password, the user's password is updated and can now log in.\n\n### Technologies Used\n- Spring Boot Starter Web\n- Spring Boot Starter Data JPA\n- MySQL Connector/J\n- Spring Boot Starter Validation\n- Spring Boot Starter Security\n- JWT API and Jackson Integration\n- Spring Boot Starter Mail\n- Project Lombok (with Lombok MapStruct Binding)\n- MapStruct (with MapStruct Processor)\n- Spring Boot Starter Test\n- Mockito Core\n- Spring Cloud Netflix Eureka Client\n- Springdoc OpenAPI Starter WebMVC UI\n\n### Swagger end-points\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"assets/swagger-authentication.PNG\" width=\"400\" length=\"600\"\u003e\n\u003c/p\u003e\n\n## 2. Task Service\n### Features\n**To access all features, user should authenticate first**\n- Get all tasks by user's email\n- Retrieves **personal tasks** \n- Retrieves **work-related** tasks \n- Retrieves tasks that are scheduled for **today** \n- Retrieves tasks scheduled for the **upcoming week** \n- Retrieves tasks that are currently **in progress** \n- Retrieves tasks that have been **completed** \n- Retrieves tasks that are **overdue** \n- Add tasks\n- Update tasks\n- Delete tasks\n\n### Technologies Used\n- Spring Cloud Netflix Eureka Client\n- Spring Boot Starter Web\n- Spring Boot Starter Data JPA\n- MySQL Connector\n- Springdoc OpenAPI Starter WebMVC UI\n- Spring Boot Starter Validation\n- Project Lombok (with Lombok MapStruct Binding)\n- MapStruct (with MapStruct Processor)\n- Spring Boot Starter Test\n\n### Swagger end-points\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"assets/swagger-task.PNG\" width=\"400\" length=\"600\"\u003e\n\u003c/p\u003e\n\n## 3. Web Portal\n### Features\n- Authentication: Secure login system to access the portal\n- Task Microservices: Utilizes task microservices through an API Gateway for seamless integration and functionality\n\n### Technologies Used\n- Spring Boot Starter Web\n- Spring Boot Starter Thymeleaf\n- Springdoc OpenAPI Starter WebMvc UI\n- Project Lombok \n- Spring Cloud Starter Netflix Eureka Client\n- OAuth2 Client\n\n### Swagger end-points\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"assets/swagger-app-1.PNG\" width=\"400\" length=\"600\"\u003e\n\u003cimg src=\"assets/swagger-app-2.PNG\" width=\"400\" length=\"600\"\u003e\n\u003c/p\u003e\n\n## 4. Discovery Service\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"assets/registry-service.PNG\" width=\"600\" length=\"600\"\u003e\n\u003c/p\u003e\n\n### Technologies Used\n- Spring Cloud Netflix Eureka Server\n- Spring Cloud Config\n\n## 5. API Gateway\n\n### Technologies Used\n- Spring Boot Starter Webflux\n- Spring Cloud Starter Gateway\n- Spring Cloud Starter Netflix Eureka Client\n- Project Lombok\n- JWT API\n- JSON Web Token \n\n## Postman Testing\n#### The application handles various types of validation and exceptions. Below are a few test cases:\n\n\u003cdetails\u003e\n\n**\u003csummary\u003eRegistration Process \u003c/summary\u003e**\n\u003cp align=\"left\"\u003e \n\n**1. invalid data**\n\u003cp align=\"center\"\u003e\u003cimg src=\"assets/invalidDataRequest.PNG\" width=\"600\" length=\"600\"\u003e\u003c/p\u003e\n\n**2. valid data**\n\u003cp align=\"center\"\u003e\u003cimg src=\"assets/registration.PNG\" width=\"600\" length=\"600\"\u003e\u003c/p\u003e\n\n**3. user exists**\n\u003cp align=\"center\"\u003e\u003cimg src=\"assets/registration_userExists.PNG\" width=\"600\" length=\"600\"\u003e\u003c/p\u003e\n\n**4. verification email to activate account**\n\u003cp align=\"center\"\u003e\u003cimg src=\"assets/account-verification.PNG\" width=\"600\" length=\"600\"\u003e\u003c/p\u003e\n\n**5. account activation**\n\u003cp align=\"center\"\u003e\u003cimg src=\"assets/activation.PNG\" width=\"600\" length=\"600\"\u003e\u003c/p\u003e\n\u003c/p\u003e\n\u003c/details\u003e\n\n\n\u003cdetails\u003e\n\n**\u003csummary\u003eReset Password Process\u003c/summary\u003e**\n\n\u003cp align=\"left\"\u003e\n\n**1. user is not found**\n\u003cp align=\"center\"\u003e\u003cimg src=\"assets/reset-not-found.PNG\" width=\"600\" length=\"600\"\u003e\u003c/p\u003e\n\n**2. user is found**\n\u003cp align=\"center\"\u003e\u003cimg src=\"assets/rerset-found.PNG\" width=\"600\" length=\"600\"\u003e\u003c/p\u003e\n\n**3. verify email - token is expired**\n\u003cp align=\"center\"\u003e\u003cimg src=\"assets/reset-verification.PNG\" width=\"600\" length=\"600\"\u003e\u003c/p\u003e\n\n**4. verify email- token is valid**\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"assets/reset-token-expired.PNG\" width=\"300\" length=\"600\"\u003e\n\n**5. send new password**\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"assets/reset-send-new-password.PNG\" width=\"300\" length=\"600\"\u003e\n\u003cimg src=\"assets/reset-password-changed.PNG\" width=\"300\" length=\"600\"\u003e\u003c/p\u003e\n\u003c/p\u003e\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\n**\u003csummary\u003e Authentication Process\u003c/summary\u003e**\n\u003cp align=\"left\u003e\n\n**1. account is inactive**\n\u003cp align=\"center\"\u003e\u003cimg src=\"assets/login-inactive.PNG\" width=\"600\" length=\"600\"\u003e\u003c/p\u003e\n\n**2. account is not found**\n\u003cp align=\"center\"\u003e\u003cimg src=\"assets/login-notfound.PNG\" width=\"600\" length=\"600\"\u003e\u003c/p\u003e\n\n**3. password is incorrect**\n\u003cp align=\"center\"\u003e\u003cimg src=\"assets/login-incorrectPassword.PNG\" width=\"600\" length=\"600\"\u003e\u003c/p\u003e\n\n**4. valid login**\n\u003cp align=\"center\"\u003e\u003cimg src=\"assets/login-active.PNG\" width=\"600\" length=\"600\"\u003e\u003c/p\u003e\n\u003c/p\u003e\n\u003c/details\u003e\n\n\n\u003cdetails\u003e\n\n**\u003csummary\u003e Filter Tasks Feature\u003c/summary\u003e**\n\u003cp align=\"left\u003e\n\n**1. get all tasks - user didn't authenticate**\n\u003cp align=\"center\"\u003e\u003cimg src=\"assets/task-authentication.PNG\" width=\"600\" length=\"600\"\u003e\u003c/p\u003e\n\n**2. get all tasks**\n\u003cp align=\"center\"\u003e\u003cimg src=\"assets/all-tasks.PNG\" width=\"600\" length=\"600\"\u003e\u003c/p\u003e\n\n**3. filter tasks: completed tasks**\n\u003cp align=\"center\"\u003e\u003cimg src=\"assets/filter-completed.PNG\" width=\"600\" length=\"600\"\u003e\u003c/p\u003e\n\n\u003c/p\u003e\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\n**\u003csummary\u003eTasks: CRUD Operations\u003c/summary\u003e**\n\u003cp align=\"left\u003e\n\n**1. add task - user is authorized**\n\u003cp align=\"center\"\u003e\u003cimg src=\"assets/add task - authorized.PNG\" width=\"700\" length=\"600\"\u003e\u003c/p\u003e\n\n**2. update task - user is authorized**\n\u003cp align=\"center\"\u003e\u003cimg src=\"assets/update task-authorized.PNG\" width=\"700\" length=\"600\"\u003e\u003c/p\u003e\n\n**3. update task - user is unauthorized**\n\u003cp align=\"center\"\u003e\u003cimg src=\"assets/update task-unauthorized.PNG\" width=\"700\" length=\"600\"\u003e\u003c/p\u003e\n\n**4. update task - user is authorized - data is invalid**\n\u003cp align=\"center\"\u003e\u003cimg src=\"assets/update task-authorized-validation.PNG\" width=\"600\" length=\"600\"\u003e\u003c/p\u003e\n\n**5. delete task - user authorized**\n\u003cp align=\"center\"\u003e\u003cimg src=\"assets/delete task - authorized.PNG\" width=\"700\" length=\"600\"\u003e\u003c/p\u003e\n\n\u003c/p\u003e\n\u003c/details\u003e\n\n## Future Work\n\n- Enhance interactivity: Display feedback messages for user actions.\n- Implement OAuth2 authentication with Google API.\n- Strengthen security with additional layers.\n- Introduce a notification system to alert users before tasks expire.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famira921%2Ftodo-website-spring-angular","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famira921%2Ftodo-website-spring-angular","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famira921%2Ftodo-website-spring-angular/lists"}