{"id":19097592,"url":"https://github.com/projectsandprograms/crud-spring-boot-thymeleaf","last_synced_at":"2025-04-14T04:06:55.238Z","repository":{"id":224212000,"uuid":"762720590","full_name":"ProjectsAndPrograms/crud-spring-boot-thymeleaf","owner":"ProjectsAndPrograms","description":"spring boot crud application. best practice for beginners. ","archived":false,"fork":false,"pushed_at":"2024-07-01T03:02:47.000Z","size":7334,"stargazers_count":3,"open_issues_count":1,"forks_count":4,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-27T17:52:04.660Z","etag":null,"topics":["crud","crud-application","mysql","spring-boot","spring-data-jpa","spring-mvc","spring-mvc-crud","spring-tool-suite","spring-tool-suite3","thymeleaf","thymeleaf-java","thymeleaf-template-engine"],"latest_commit_sha":null,"homepage":"","language":"HTML","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/ProjectsAndPrograms.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}},"created_at":"2024-02-24T14:04:23.000Z","updated_at":"2024-11-04T19:55:37.000Z","dependencies_parsed_at":"2024-11-09T03:42:03.453Z","dependency_job_id":"35897894-d3c6-4340-8414-43993f0b77ea","html_url":"https://github.com/ProjectsAndPrograms/crud-spring-boot-thymeleaf","commit_stats":null,"previous_names":["projectsandprograms/crud-spring-boot-thymeleaf"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ProjectsAndPrograms%2Fcrud-spring-boot-thymeleaf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ProjectsAndPrograms%2Fcrud-spring-boot-thymeleaf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ProjectsAndPrograms%2Fcrud-spring-boot-thymeleaf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ProjectsAndPrograms%2Fcrud-spring-boot-thymeleaf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ProjectsAndPrograms","download_url":"https://codeload.github.com/ProjectsAndPrograms/crud-spring-boot-thymeleaf/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248819398,"owners_count":21166477,"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":["crud","crud-application","mysql","spring-boot","spring-data-jpa","spring-mvc","spring-mvc-crud","spring-tool-suite","spring-tool-suite3","thymeleaf","thymeleaf-java","thymeleaf-template-engine"],"created_at":"2024-11-09T03:41:56.374Z","updated_at":"2025-04-14T04:06:55.204Z","avatar_url":"https://github.com/ProjectsAndPrograms.png","language":"HTML","readme":"## crud-spring-boot-thymeleaf\n Simple crud application to perform basic tasks, that we have to know while learning spring boot.Best practice for beginners.\n\n## Features\n  1. Image Uplaod\n  2. Password encoder\n  3. Pagination links \n  4. Flash messages\n  5. Error pages to handle error code such as 404, 500 etc.\n\n## Technolgies Used \n  1. Spring-boot 3.0.0\n  2. Thymeleaf template engine\n  3. Spring data jpa\n  4. Spring mvc\n  5. MySQL database\n  6. Developed in SpringToolSuite4 (STS) IDE\n  \n## Screenshots\n\n\u003cdiv style=\"display: flex;flex-direction: column; grid-gap: 10px;\"\u003e\n    \u003cdiv style=\"display: flex; grid-gap: 10px;\"\u003e\n        \u003cimg src=\"src/main/resources/static/images/1.png\" alt=\"screenshots\" width=\"49%\" style=\"border: 2px solid lightgreen\"/\u003e\n        \u003cimg src=\"src/main/resources/static/images/2.png\" alt=\"screenshots\" width=\"49%\" style=\"border: 2px solid lightgreen\"/\u003e\n    \u003c/div\u003e\n    \u003cdiv style=\"display: flex; grid-gap: 10px;\"\u003e\n        \u003cimg src=\"src/main/resources/static/images/3.png\" alt=\"screenshots\" width=\"49%\" style=\"border: 2px solid lightgreen\"/\u003e\n        \u003cimg src=\"src/main/resources/static/images/4.png\" alt=\"screenshots\" width=\"49%\" style=\"border: 2px solid lightgreen\"/\u003e\n    \u003c/div\u003e\n     \u003cdiv style=\"display: flex; grid-gap: 10px;\"\u003e\n        \u003cimg src=\"src/main/resources/static/images/5.png\" alt=\"screenshots\" width=\"49%\" style=\"border: 2px solid lightgreen\"/\u003e\n        \u003cimg src=\"src/main/resources/static/images/6.png\" alt=\"screenshots\" width=\"49%\" style=\"border: 2px solid lightgreen\"/\u003e\n    \u003c/div\u003e\n\u003c/div\u003e\n\u003cbr\u003e\n\n## HOW TO USE?\n\n \u003cb\u003eStep-1:\u003c/b\u003e Fistly you need to set-up your database. Make sure you have MySQL installed in your PC. \n \u003cbr\u003e Database Setup : to setup your database you can use the file database/boot_crud_db.sql. using phpmyadmin = if you are using php myadmin then simpley create a new database with the name of 'chat' and then you can import file database/boot_crud_db.sql from your import tab.\n\n using mysql command line client OR workbench - \n  you can simple run the given queries to create your database setup: \n    \n  creating a database :\n    \n```sql\nCREATE DATABASE boot_crud_db;\n```\n\n  using the database :\n\n```sql\nUSE boot_crud_db;\n```\n\n  creating database table :\n\n```sql\nCREATE TABLE `users` (\n  `id` bigint(20) NOT NULL,\n  `dob` date DEFAULT NULL,\n  `email` varchar(255) DEFAULT NULL,\n  `name` varchar(255) DEFAULT NULL,\n  `password` varchar(255) DEFAULT NULL,\n  `image` varchar(255) DEFAULT NULL\n) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;\n```\n\n  add primary key and other constraints :\n\n```sql\nALTER TABLE `users`\n  ADD PRIMARY KEY (`id`),\n  ADD UNIQUE KEY `UK6dotkott2kjsp8vw4d0m25fb7` (`email`);\n```\n  set the unique id to handle big requests as well:\n\n```sql\nALTER TABLE `users`\n  MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=40;\nCOMMIT;\n```\ndummy data:\n\n```sql\nINSERT INTO `users` (`id`, `dob`, `email`, `name`, `password`, `image`) VALUES\n(20, '2024-02-23', 'raj@gmail.com', 'Raj kumar', '$2a$10$NI5IFvnLxpXlkjSplgsB2e2bOjHkEHtCZ7kfVzdRDPTVpJk9WH.Iu', 'cfb47473-369c-4be9-b3d0-a2bdbcdcfe38.jpg'),\n(21, '2024-01-31', 'mysql@gmail.com', 'SpaceX', '$2a$10$9Oal.rc7J/0qewwsPbFOIuNgjTNGMRE2Zh1nxmY0CRTsiEK1IFRFO', 'adefefb9-b7c6-43d6-a661-c4a1ae42cc53.png');\n```\n\n \u003cb\u003eStep-2:\u003c/b\u003e open your STS IDE import this project as an existing maven project \u003cbr\u003e\n        \u003ci\u003efile-\u003eimport-\u003eexisting maven project-\u003e choose project folder and hit enter\u003c/i\u003e\u003cbr\u003e\u003cbr\u003e\n        This will open that project in your ide\u003cbr\u003e\u003cbr\u003e\n \u003cb\u003eStep-3:\u003c/b\u003e To run this application firstly you need to update your build and update your newly opened maven project.\u003cbr\u003e\n        To do this right click on your project -\u003e build project \u003cbr\u003e\n        after this in order to update your maven project, again\u003ci\u003e right click on your project-\u003e maven -\u003e update project\u003c/i\u003e\u003cbr\u003e\u003cbr\u003e\n \u003cb\u003eStep-4:\u003c/b\u003e Now you are ready to run this crud-application \u003cbr\u003e\n\u003ci\u003eright click on this java class =\u003e src/main/java/com/crudapp/SpringBootCrudApplication.java  -\u003e Run As -\u003e Spring boot application\u003c/i\u003e \u003cbr\u003e\nIt will take few seconds to launch the applications. after launching you can browser this url [ [http://localhost:8080](http://localhost:8080)] on your browser to show application  \n\u003cbr\u003e\u003cbr\u003e\n\u003cb\u003eNOTE -\u003c/b\u003e if you are configuring this type of project first time, you may face many errors, my suggestion is - to run application - and check the browser with this URL [ [http://localhost:8080](http://localhost:8080)] . If this page is available that means your errors are minor and you are able to run this applicaton \n\u003cbr\u003eIn my case this is working just fine!\n\n## Contributing\n\nPull requests are welcome. For major changes, please open an issue first\nto discuss what you would like to change.\n\nPlease make sure to update tests as appropriate.\n\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprojectsandprograms%2Fcrud-spring-boot-thymeleaf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprojectsandprograms%2Fcrud-spring-boot-thymeleaf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprojectsandprograms%2Fcrud-spring-boot-thymeleaf/lists"}