{"id":24309122,"url":"https://github.com/nnishad/reactive-springboot-with-reactjs-app","last_synced_at":"2026-04-29T20:34:11.611Z","repository":{"id":112433232,"uuid":"547296871","full_name":"nnishad/reactive-springboot-with-reactjs-app","owner":"nnishad","description":"Single jar-based server for both frontend and backend. This project has springboot for backend with Reactjs application embeded as static resource to it.","archived":false,"fork":false,"pushed_at":"2022-10-08T17:50:16.000Z","size":92,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-08T20:23:18.774Z","etag":null,"topics":["embeded-reactjs","hacktoberfest","hacktoberfest-accepted","hacktoberfest2022","jar","reactjs","spring","springboot"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/nnishad.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":"2022-10-07T13:00:11.000Z","updated_at":"2023-09-08T18:38:27.000Z","dependencies_parsed_at":"2023-05-15T02:30:59.539Z","dependency_job_id":null,"html_url":"https://github.com/nnishad/reactive-springboot-with-reactjs-app","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/nnishad/reactive-springboot-with-reactjs-app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nnishad%2Freactive-springboot-with-reactjs-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nnishad%2Freactive-springboot-with-reactjs-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nnishad%2Freactive-springboot-with-reactjs-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nnishad%2Freactive-springboot-with-reactjs-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nnishad","download_url":"https://codeload.github.com/nnishad/reactive-springboot-with-reactjs-app/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nnishad%2Freactive-springboot-with-reactjs-app/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32443559,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T20:22:27.477Z","status":"ssl_error","status_checked_at":"2026-04-29T20:22:26.507Z","response_time":110,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["embeded-reactjs","hacktoberfest","hacktoberfest-accepted","hacktoberfest2022","jar","reactjs","spring","springboot"],"created_at":"2025-01-17T05:12:55.678Z","updated_at":"2026-04-29T20:34:11.591Z","avatar_url":"https://github.com/nnishad.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# SpringBoot Application bundled with ReactJs in single jar\n\nLooking for creating a single jar-based server for both frontend and backend? This project will help you out.\n\n\n## How to use during development?\n    We need to run both the application serprately and continue your developement.\n    These command can be used to run these application while development.\n    Root directory: ./gradlew bootRun\n    Frontend directory inside root: npm start\n\n## How to build for production deployment?\n    Once development completed and ready for deployment, update your build.gradle file to build react app as well during this.\n\n    plugins {\n\t    id 'org.siouan.frontend-jdk11' version '6.0.0'\n    }\n\n    frontend {\n        nodeVersion = '16.1.0'\n        packageJsonDirectory= file(\"${projectDir}/frontend\")\n        nodeInstallDirectory = file(\"${projectDir}/frontend/node\")\n        assembleScript = 'run build'\n    }\n    *Above task will do the react app build for you\n    Now we need to copy this build to our spring application build folder\n    \n    task copyReactApp(type: Copy) {\n        from \"${projectDir}/frontend/build\"\n        into \"${projectDir}/build/resources/main/public/.\"\n    }\n    bootJar.dependsOn(copyReactApp)\n\n    And you are done with gradle changes to be done. Next gradle build will give you jar file with react application in it.\n\n\n\n## How this work?\n\nModified build.gradle helps to execute node/npm command while building springboot application.\n\n'org.siouan.frontend-jdk11' plugin helps to manage node related enviroment and scripts and excute them.\nWe ne to provid it the location where my react-app is located and node-version required and it downloads that on the go while building the spring application which actually helps to create a single jar with react production build static file to be served.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnnishad%2Freactive-springboot-with-reactjs-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnnishad%2Freactive-springboot-with-reactjs-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnnishad%2Freactive-springboot-with-reactjs-app/lists"}