{"id":30456269,"url":"https://github.com/mafeth/spring-accsystem-template","last_synced_at":"2025-09-18T00:36:08.871Z","repository":{"id":290654870,"uuid":"652327002","full_name":"mafeth/spring-accsystem-template","owner":"mafeth","description":"A Springboot template with basic account system","archived":false,"fork":false,"pushed_at":"2025-04-16T18:57:35.000Z","size":72,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-23T19:30:24.838Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/mafeth.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}},"created_at":"2023-06-11T19:49:58.000Z","updated_at":"2025-04-16T18:58:06.000Z","dependencies_parsed_at":"2025-04-29T23:35:26.811Z","dependency_job_id":"091ee1c0-a299-4e0a-b6f6-d588ec33beab","html_url":"https://github.com/mafeth/spring-accsystem-template","commit_stats":null,"previous_names":["mafeth/spring-accsystem-template"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mafeth/spring-accsystem-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mafeth%2Fspring-accsystem-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mafeth%2Fspring-accsystem-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mafeth%2Fspring-accsystem-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mafeth%2Fspring-accsystem-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mafeth","download_url":"https://codeload.github.com/mafeth/spring-accsystem-template/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mafeth%2Fspring-accsystem-template/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275690346,"owners_count":25510497,"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","status":"online","status_checked_at":"2025-09-17T02:00:09.119Z","response_time":84,"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":[],"created_at":"2025-08-23T16:13:55.180Z","updated_at":"2025-09-18T00:36:08.829Z","avatar_url":"https://github.com/mafeth.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Spring Account System Template\n\nTemplate for fully setupped accountsystem for springboot\n\n## Technologies\n\n- **Spring Boot**: Main framework for the backend.\n- **Spring Security**: For authentication and security.\n- **JPA/Hibernate**: For database integration (MySQL, PostgreSQL, etc.).\n- **REST API**: For communication between frontend and backend.\n\n## Installation\n\n1. **Clone the repository:**\n```bash\ngit clone https://github.com/your-username/spring-accsystem-template.git\n```\n2. **Navigate to the project directory:**\n```bash\ngit clone https://github.com/your-username/spring-accsystem-template.git\n```\n3. **Install dependencies:**\n```bash\nmvn install\ngradle build\n```\n4. **Start application:**\n```bash\nmvn spring-boot:run\n```\n\n## API Endpoints\n### Authentication\n- **POST** `/auth/login`\n  Authenticates a user and returns a session token.\n  **Request Body:**\n  ```json\n  {\n  \"username\": \"your-username\",\n  \"password\": \"your-password\"\n  }\n  ```\n   **Response:**\n   \n   ```json\n   {\n     \"status\": \"OK\",\n     \"message\": \"Successfully logged in.\",\n     \"data\": {\n       \"sessionId\": \"your-session-id\",\n       \"username\": \"your-username\",\n       \"email\": \"user-email\"\n     }\n   }\n   ```\n- **POST** `/auth/register`\n  Registers a new user.\n  **Request Body:**\n  ```json\n  {\n  \"username\": \"new-username\",\n  \"email\": \"new-user@example.com\",\n  \"password\": \"new-password\"\n  }\n  ```\n   **Response:** \n   ```json\n   {\n  \"status\": \"OK\",\n  \"message\": \"User successfully registered.\"\n  }\n   ```\n- **POST** `/auth/logout`\n  Logs out the user by invalidating their session.\n  **Request Headers:**\n  ```yaml\n  Authorization: Bearer your-session-id\n  ```\n   **Response:** \n   ```json\n    {\n      \"status\": \"OK\",\n      \"message\": \"Successfully logged out.\"\n    }\n   ```\n- **POST** `/auth/check-session`\n  Checks if the provided session is still valid.\n  **Request Headers:**\n  ```yaml\n  Authorization: Bearer your-session-id\n  ```\n   **Response:** \n   ```json\n    {\n      \"status\": \"OK\",\n      \"message\": \"Session is valid.\"\n    }\n   ```\n\n## Contributing\nIf you'd like to contribute to this project, feel free to fork the repository, create a branch, and submit a pull request. Please make sure your code follows the project's coding standards and includes tests where necessary.\n\n\n## License\nThis project is licensed under the MIT License - see the LICENSE file for details.\n```\nThis `README.md` provides an overview of the project, installation instructions, and documentation for the key API endpoints for authentication and board management. You can modify it further if needed for your specific requirements!\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmafeth%2Fspring-accsystem-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmafeth%2Fspring-accsystem-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmafeth%2Fspring-accsystem-template/lists"}