{"id":24072539,"url":"https://github.com/jongan69/springboot-books","last_synced_at":"2026-05-15T00:02:49.126Z","repository":{"id":236351559,"uuid":"792020219","full_name":"jongan69/springboot-books","owner":"jongan69","description":"a demo java springboot api for managing a library","archived":false,"fork":false,"pushed_at":"2024-04-27T21:11:36.000Z","size":124,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-09T17:17:55.121Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://security.grayfield-70b52b76.eastus.azurecontainerapps.io/swagger-ui/index.html","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jongan69.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-04-25T20:23:41.000Z","updated_at":"2024-12-30T08:05:42.000Z","dependencies_parsed_at":"2024-04-26T18:08:38.521Z","dependency_job_id":null,"html_url":"https://github.com/jongan69/springboot-books","commit_stats":null,"previous_names":["jongan69/springboot-books"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jongan69%2Fspringboot-books","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jongan69%2Fspringboot-books/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jongan69%2Fspringboot-books/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jongan69%2Fspringboot-books/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jongan69","download_url":"https://codeload.github.com/jongan69/springboot-books/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240941532,"owners_count":19882063,"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":[],"created_at":"2025-01-09T17:18:25.707Z","updated_at":"2026-05-15T00:02:44.073Z","avatar_url":"https://github.com/jongan69.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Spring Boot 3.0 Library with Security with JWT Implementation\nThis project demonstrates the implementation of security using Spring Boot 3.0 and JSON Web Tokens (JWT). It includes the following features:\n\n## Features\n* User registration and login with JWT authentication\n* Password encryption using BCrypt\n* Role-based authorization with Spring Security\n* Customized access denied handling\n* Logout mechanism\n* Refresh token\n\n## Technologies\n* Spring Boot 3.0\n* Spring Security\n* JSON Web Tokens (JWT)\n* BCrypt\n* Maven\n \n## Getting Started\nTo get started with this project, you will need to have the following installed on your local machine:\n\n* JDK 17+\n* Maven 3+\n\n\nTo build and run the project, follow these steps:\n\n* Clone the repository: `git clone`\n* Navigate to the project directory: cd backend\n* Create SQL Server in Azure and use `cp .env.example .env` and enter the sql server details\n* Run `export $(cat .env | xargs)` in terminal to put .env variables in shell\n* Build the project: `mvn clean install`\n* Run the project: `mvn spring-boot:run`\n\n## Steps for Azure Deployment\n\n* To Prepare for azure deploy: \n`export MAVEN_OPTS=\"--add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED\" ./mvnw com.microsoft azure:azure-spring-apps-maven-plugin:1.18.0:config -DadvancedOptions`\n* To Deploy to azure:\n`./mvnw azure-spring-apps:deploy`\n\n### Azure Github Action\n* Deploy with Github Action You need Azure creds in github env\n1. With Azure CLI installed run \n\n`az ad sp create-for-rbac \\\n    --role contributor \\\n    --scopes /subscriptions/\u003cSUBSCRIPTION_ID\u003e/resourceGroups/\u003cRESOURCE_GROUP\u003e \\\n    --json-auth`\n\n2. Set .env variable in github.com:\n`AZURE_CREDENTIALS`: `Copy and paste above output`\n\n-\u003e The application will be available at http://localhost:8080.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjongan69%2Fspringboot-books","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjongan69%2Fspringboot-books","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjongan69%2Fspringboot-books/lists"}