{"id":22213995,"url":"https://github.com/xmlking/reactive-security","last_synced_at":"2025-03-25T06:24:07.064Z","repository":{"id":132656474,"uuid":"102993126","full_name":"xmlking/reactive-security","owner":"xmlking","description":null,"archived":false,"fork":false,"pushed_at":"2023-03-03T23:23:54.000Z","size":18174,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-30T05:43:20.954Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Kotlin","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/xmlking.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}},"created_at":"2017-09-10T00:29:03.000Z","updated_at":"2021-12-21T01:34:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"219caebd-60b4-4b06-a570-0a8d47517598","html_url":"https://github.com/xmlking/reactive-security","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xmlking%2Freactive-security","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xmlking%2Freactive-security/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xmlking%2Freactive-security/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xmlking%2Freactive-security/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xmlking","download_url":"https://codeload.github.com/xmlking/reactive-security/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245409581,"owners_count":20610556,"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":"2024-12-02T21:12:53.305Z","updated_at":"2025-03-25T06:24:07.044Z","avatar_url":"https://github.com/xmlking.png","language":"Kotlin","readme":"Reactive Security\n=================\nA simple demo application showcases reactive security.\n\n##### Technology stack\n* Spring Framework 5\n* Spring Boot 2.0.0\n* Spring WebFlux\n* Gradle 4\n\n##### Highlights\n* Multi-project builds with Gradle Kotlin Script. \n* Kotlin as a language\n* Cross-Origin Resource Sharing (CORS)\n* Docker deployment\n\n\n### Prerequisites\n1. Gradle 4 (Install via [sdkman](http://sdkman.io/))\n2. Docker for Mac [Setup Instructions](./docs/Docker.md)\n\n### Build\n```bash\n# build all 3 executable jars\ngradle build\n# continuous build with `-t`. \n# this shoud be started before any run tasks i.e., `gradle ui-app:bootRun`, for spring's devtools to work.\ngradle -t build\n# build all 3 apps\ngradle build -x test -x shared:build\n# build all 3 docker images\ngradle docker -x test -x shared:build\n```\n\n### Test\n```bash\ngradle test\n```\n\n### Run\n##### Manual \nStart all 3 apps: [data-service](./data-service/), [auth-service](./auth-service/), [jwt-client](./jwt-client-js/)\n\u003e If you want to debug the app, add --debug-jvm parameter to Gradle command line\n\n##### Docker\nYou can also build Docker images and run all via `Docker Compose`\n```bash\n# start containers in the background\ndocker-compose up -d\n# start containers in the foreground\ndocker-compose up \n# show runnning containers \ndocker-compose ps\n# scaling containers and load balancing\ndocker-compose scale data-service=2\n# 1. stop the running containers using\ndocker-compose stop\n# 2. remove the stopped containers using\ndocker-compose rm -f\n# start specific docker-compose file\ndocker-compose  -f docker-compose-all.yml up\n# just start only a single service\ndocker-compose up mysql\n# connect(ssh) to a service and run a command\ndocker-compose exec  mysql mysql --user=root --password demo\n```\n\u003eAccess UI App at http://localhost:8080\n\n\n### Gradle Commands\n```bash\n# upgrade project gradle version\ngradle wrapper --gradle-version 4.2 --distribution-type all\n# gradle daemon status \ngradle --status\ngradle --stop\n# refresh dependencies\ngradle build --refresh-dependencies\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxmlking%2Freactive-security","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxmlking%2Freactive-security","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxmlking%2Freactive-security/lists"}