{"id":15563939,"url":"https://github.com/mrsarm/spring-react-crud","last_synced_at":"2025-04-09T16:52:28.884Z","repository":{"id":42203940,"uuid":"193381088","full_name":"mrsarm/spring-react-crud","owner":"mrsarm","description":"React.js and Spring REST CRUD Admin","archived":false,"fork":false,"pushed_at":"2025-03-11T21:29:13.000Z","size":601,"stargazers_count":12,"open_issues_count":0,"forks_count":9,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-23T18:54:24.159Z","etag":null,"topics":["admin","bootstrap4","crud","hibernate","java","maven","reactjs","spring","spring-boot","spring-data-jpa","webapp"],"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/mrsarm.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}},"created_at":"2019-06-23T18:16:50.000Z","updated_at":"2025-03-11T21:21:54.000Z","dependencies_parsed_at":"2023-02-05T02:01:01.654Z","dependency_job_id":null,"html_url":"https://github.com/mrsarm/spring-react-crud","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/mrsarm%2Fspring-react-crud","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrsarm%2Fspring-react-crud/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrsarm%2Fspring-react-crud/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrsarm%2Fspring-react-crud/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mrsarm","download_url":"https://codeload.github.com/mrsarm/spring-react-crud/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248073411,"owners_count":21043431,"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":["admin","bootstrap4","crud","hibernate","java","maven","reactjs","spring","spring-boot","spring-data-jpa","webapp"],"created_at":"2024-10-02T16:31:41.792Z","updated_at":"2025-04-09T16:52:28.878Z","avatar_url":"https://github.com/mrsarm.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"React.js and Spring Data REST - CRUD\n====================================\n\n![React Spring CRUD](docs/img/spring-react-crud.png)\n\nCRUD application with security enabled: a PoC with\nReactJS in the frontend and Spring Data REST in the backend.\n\n## 🚀 Stack\n\n- **Backend**: Java 21 LTS, Spring Boot 3 (web, security, JPA),\n  Postgres / H2 (or whatever DB is compatible with JPA).\n- **Frontend**: ReactJS, React Router, Bootstrap,\n  Axios, Reactstrap, Node 18 / Npm / Webpack (build).\n\n\n### ⚙️ Requirements\n\n- **JDK 21+**\n- **Maven 3+**, or you can use the script `./mvnw` instead that it will install\n  Maven 3.9 in the user space automatically if the required version isn't there\n\nTo build the web assets the project uses **Node.js**, **Webpack**, ...\nbut all of them are installed and triggered by Maven automatically\nin the user space.\n\n\n## 🎮 Usage\n\nLaunch the application with:\n\n    $ mvn spring-boot:run\n\nOr use `./mvnw` instead of `mvn` (`mvnw.cmd` for Window platforms).\n\nThen access the application with http://localhost:8080/, or access\nto the API with http://localhost:8080/api/.\n\nOne of the users to access the app with privileged permissions is `frodo@local`,\nand the password `admin`. Check and edit the initial dataset in\nthe [DatabaseLoader.java](src/main/java/ar/com/mrdev/app/user/DatabaseLoader.java#L46-L50)\nfile.\n\nIf you access the API through the HAL browser, it will require to sign-in\nlike with the dash panel using a web page provided by Spring Security,\nbut if you are going to consume the API with a 3rd party tool\nyou will need to authenticate using\n[HTTP Basic Authentication](https://en.wikipedia.org/wiki/Basic_access_authentication),\neg. with `curl` the `Authorization: Basic ...` header can be generated using\nthe `-u user:pass` argument:\n\n    $ curl -u gf@local:admin http://localhost:8080/api/users\n\n#### 🌶 Hot reloading\n\nTo edit Javascript or CSS resources and see the changes in the\nbrowser without the need to re-launch the application, execute within\na command line:\n\n    $ npm run watch\n\nAnd leave it running (if it doesn't work, try with `target/node/npm run watch`).\n\n\n#### 📦 Packaging\n\nPack the application in a single .jar with all the dependencies\nand the web server with:\n\n    $ mvn package\n\nAdd the argument `-Dmaven.test.skip` if you don't want to run the tests before packaging.\n\nThen you can run the .jar with:\n\n    $ java -jar target/app-0.0.1-SNAPSHOT.jar\n\n\n### ⏯ Tests\n\nFor now only a test that checks that the spring context\ncan be loaded is in the source code. Execute with:\n\n    $ mvn test\n\nA _GitHub Action_ workflow is configured as well\nas **CI** environment, check out [maven.yml](.github/workflows/maven.yml).\n\nVersions\n--------\n\nFor now there are two versions, each one with its own branch:\n\n- `master`: main version with an in-memory database (H2) to quickly\n  launch the application without the need of a database installed (local tests).\n- `postgres`: modified version with PostgreSQL configured,\n  ready for \"production\" usage.\n\n\nAbout\n-----\n\n**Source code**: https://github.com/mrsarm/spring-react-crud\n\n**Authors**:\n* Mariano Ruiz \u003cmrsarm (at) gmail\u003e\n\nThe goal was to learn React and using Spring as backend, so I started\nfollowing this [guide](https://spring.io/guides/tutorials/react-and-spring-data-rest)\nfrom _Spring.io_ (Greg Turnquist and other authors from _Pivotal_), but I ended up\nrewriting  almost all from scratch and adding a lot of features, like Bootstrap,\nclient side validations, routing, updating dependencies to major versions ...\n\n2015-2025  |  Apache-2.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrsarm%2Fspring-react-crud","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrsarm%2Fspring-react-crud","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrsarm%2Fspring-react-crud/lists"}