{"id":25012508,"url":"https://github.com/bibekaryal86/pets-gateway","last_synced_at":"2026-04-20T09:34:56.473Z","repository":{"id":44913665,"uuid":"437447605","full_name":"bibekaryal86/pets-gateway","owner":"bibekaryal86","description":"Spring Cloud Gateway implementation for a React project","archived":false,"fork":false,"pushed_at":"2025-11-18T04:11:33.000Z","size":300,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-18T05:34:23.349Z","etag":null,"topics":["gradle","java","spring","spring-cloud-gateway"],"latest_commit_sha":null,"homepage":"https://pets-gateway.appspot.com/tests/ping","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/bibekaryal86.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":"2021-12-12T03:57:21.000Z","updated_at":"2025-11-18T03:53:06.000Z","dependencies_parsed_at":"2023-12-22T04:26:49.045Z","dependency_job_id":"4a2afdf7-fedf-43c3-b24b-1f80e114a17b","html_url":"https://github.com/bibekaryal86/pets-gateway","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bibekaryal86/pets-gateway","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bibekaryal86%2Fpets-gateway","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bibekaryal86%2Fpets-gateway/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bibekaryal86%2Fpets-gateway/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bibekaryal86%2Fpets-gateway/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bibekaryal86","download_url":"https://codeload.github.com/bibekaryal86/pets-gateway/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bibekaryal86%2Fpets-gateway/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32041661,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T00:18:06.643Z","status":"online","status_checked_at":"2026-04-20T02:00:06.527Z","response_time":94,"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":["gradle","java","spring","spring-cloud-gateway"],"created_at":"2025-02-05T06:16:38.553Z","updated_at":"2026-04-20T09:34:56.454Z","avatar_url":"https://github.com/bibekaryal86.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pets-gateway\n\nThis app is a simple implementation of Spring Cloud Gateway to route calls from SPAs to microservices.\n\nThis is created/implemented to overcome CORS issue with a React based SPA. Microservices might also route their request\nvia the gateway as required\n\nThe gateway also provides a layer of authentication by validating JWT tokens in the request.\n\nTo run the app, we need to supply the following environment variables:\n\n* Active Profile\n    * SPRING_PROFILES_ACTIVE (development, docker, production)\n* PETS Service Security Details:\n    * BASIC_AUTH_USR_PETSSERVICE (auth username of pets-service)\n    * BASIC_AUTH_PWD_PETSSERVICE (auth password of pets-service)\n    * BASIC_AUTH_USR_PETSDATABASE (auth username of pets-database)\n    * BASIC_AUTH_PWD_PETSDATABASE (auth password of pets-database)\n* The final run command looks like this:\n    * java -jar -DSPRING_PROFILES_ACTIVE=development -DBASIC_AUTH_USR_PETSSERVICE=some_username\n      -DBASIC_AUTH_PWD_PETSSERVICE=some_password -DBASIC_AUTH_USR_PETSDATABASE=another_username\n      -DBASIC_AUTH_PWD_DATABASE=another_password JARFILE.jar\n\nThis app is one of the five apps that form the PETS (Personal Expenses Tracking System) application:\n\n* https://github.com/bibekaryal86/pets-database\n* https://github.com/bibekaryal86/pets-service\n* https://github.com/bibekaryal86/pets-authenticate\n* https://github.com/bibekaryal86/pets-gateway (this)\n* https://github.com/bibekaryal86/pets-spa\n\nThis app is deployed in Google Cloud Project. The GCP configurations are found in the `gcp` folder in the project root.\nTo deploy to GCP, we need to copy the jar file to that folder and use gcloud app deploy terminal command.\n\n* App Test Link: https://pets-gateway.appspot.com/tests/ping\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbibekaryal86%2Fpets-gateway","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbibekaryal86%2Fpets-gateway","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbibekaryal86%2Fpets-gateway/lists"}