{"id":33409225,"url":"https://github.com/nevil5651/ecomm-backend","last_synced_at":"2026-05-11T13:03:28.405Z","repository":{"id":325480979,"uuid":"1100875085","full_name":"nevil5651/ecomm-backend","owner":"nevil5651","description":"this is the repo for the ecom spring boot backend","archived":false,"fork":false,"pushed_at":"2025-11-21T14:58:53.000Z","size":25,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-11-21T16:23:59.075Z","etag":null,"topics":["jwt","oauth","redis","spring-boot","spring-security"],"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/nevil5651.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-11-20T22:01:26.000Z","updated_at":"2025-11-21T15:38:10.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/nevil5651/ecomm-backend","commit_stats":null,"previous_names":["nevil5651/ecomm-backend"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/nevil5651/ecomm-backend","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nevil5651%2Fecomm-backend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nevil5651%2Fecomm-backend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nevil5651%2Fecomm-backend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nevil5651%2Fecomm-backend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nevil5651","download_url":"https://codeload.github.com/nevil5651/ecomm-backend/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nevil5651%2Fecomm-backend/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32895978,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-10T13:40:02.631Z","status":"online","status_checked_at":"2026-05-11T02:00:05.975Z","response_time":120,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["jwt","oauth","redis","spring-boot","spring-security"],"created_at":"2025-11-23T18:09:52.969Z","updated_at":"2026-05-11T13:03:28.400Z","avatar_url":"https://github.com/nevil5651.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# E-commerce Platform - Authentication Module\n\nThis module handles user authentication for the e-commerce platform, including registration, login, email verification, password reset, and OAuth2 login and rest of app is being builded.\n\n## Features\n\n- User Registration with Email Verification\n- User Login with JWT\n- Refresh Token with Rotation\n- OAuth2 Login (Google, Facebook, etc.)\n- Password Reset via Email\n- Role-based Authorization (CUSTOMER, VENDOR, ADMIN, STAFF)\n\n## Technology Stack\n\n- Spring Boot\n- Spring Security\n- JWT (JSON Web Tokens)\n- Redis\n- Spring Data JPA\n- Spring Mail (with Thymeleaf)\n- PostgreSQL\n\n## Setup\n\n1. Clone the repository.\n2. Configure the database in `application.yml` with help of `applicationexample.yml` file\n3. Run the application.\n\n## API Endpoints\n\n- `POST /api/v1/auth/register` - Register a new user\n- `GET /api/v1/auth/verify-email` - Verify email using token\n- `POST /api/v1/auth/login` - Login user\n- `POST /api/v1/auth/refresh-token` - Refresh access token\n- `POST /api/v1/auth/logout` - Logout user\n- `POST /api/v1/auth/forgot-password` - Request password reset\n- `POST /api/v1/auth/reset-password` - Reset password\n\n## OAuth2 Login\n\nThe module supports OAuth2 login. Currently, it is designed to handle multiple providers. The OAuth account details are stored in the `auth_oauth_accounts` table.\n\n## Security\n\n- JWT tokens are stored in HTTP-only cookies for access token and refresh token is returned in the body (for refresh token endpoint).\n- Passwords are encoded using BCrypt.\n- Refresh tokens are stored in Redis and are rotated on every use to prevent replay attacks.\n\n## Exception Handling\n\nCustom exceptions are thrown for various error conditions and are handled by a global exception handler which returns structured JSON responses.\n\n## License\n\nThis project is just for learning purpose\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnevil5651%2Fecomm-backend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnevil5651%2Fecomm-backend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnevil5651%2Fecomm-backend/lists"}