{"id":19199202,"url":"https://github.com/amaterazu7/springboot-crentalbikes","last_synced_at":"2026-04-12T15:53:45.801Z","repository":{"id":117715017,"uuid":"120508128","full_name":"Amaterazu7/SpringBoot-CRentalBikes","owner":"Amaterazu7","description":"Assigmented exercise for Intive.","archived":false,"fork":false,"pushed_at":"2018-02-07T21:09:15.000Z","size":79,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-23T05:16:04.020Z","etag":null,"topics":["angularjs","bootswatch","java","jpa","spring","spring-boot"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Amaterazu7.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2018-02-06T18:55:53.000Z","updated_at":"2018-02-06T19:48:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"bb88716b-7e67-4eca-b7fe-da19d77379ea","html_url":"https://github.com/Amaterazu7/SpringBoot-CRentalBikes","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Amaterazu7/SpringBoot-CRentalBikes","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Amaterazu7%2FSpringBoot-CRentalBikes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Amaterazu7%2FSpringBoot-CRentalBikes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Amaterazu7%2FSpringBoot-CRentalBikes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Amaterazu7%2FSpringBoot-CRentalBikes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Amaterazu7","download_url":"https://codeload.github.com/Amaterazu7/SpringBoot-CRentalBikes/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Amaterazu7%2FSpringBoot-CRentalBikes/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269728265,"owners_count":24465609,"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","status":"online","status_checked_at":"2025-08-10T02:00:08.965Z","response_time":71,"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":["angularjs","bootswatch","java","jpa","spring","spring-boot"],"created_at":"2024-11-09T12:26:00.479Z","updated_at":"2026-04-12T15:53:40.777Z","avatar_url":"https://github.com/Amaterazu7.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Spring boot CRentalBikes\n\nThis development was created in spring-boot. In order to visualise it I suggest creating a database MySQL called \"**test**\", all data source settings are found in the **application.properties** of the project, in case to be needed. \nFurthermore, I suggest running this development as spring boot application which will be defaultly visualised from this link \"http://localhost:8080/\" once there, you will need to go to the section **pack** (\"http://localhost:8080/pack\") and generate the 3 packs with its appropriate data and prizes, for example: \"Rental by hour, Rental by day \u0026Rental by week\". Finally, you will generate at least one or two **customers** from its selection (\"http://localhost:8080/customer\"). \n\n## Development practices applied\n\nThis development was created through MVC architecture, so in that way I could separate the logic of the controllers that mapping request REST, the data model using Spring Data JPA Repositories to data and requests persistence and the view through jsp, which will perform angular and bootswatch operation.\n\n## The Design\n\nThis design is a spring boot REST + JPA + hibernate + MySQL development. Here I created a REST application that performs CRUD operation using MySQL. Spring boot provides default database configurations when it scans Spring Data JPA in classpath. Spring boot uses spring-boot-starter-data-jpa, starter to configure spring JPA with hibernate. For data source I needed to configure data source properties starting with **spring.datasource.*** in **application.properties** and then spring boot JPA will configure data source automatically and then I worked with an Interface for each model with the structure heredated by CrudRepository. To run the application I created a class with main() method that is called SpringApplication.run() to start the application with embedded tomcat. The class with main() method was annotated with @SpringBootApplication.\n\n## How to run the tests?\n\nTo run the tests I suggest executing the application and adding all data to it. There are also some data that work as entries to the tests and can be configured in **test*.java**. In addition to this, to run some of the tests I used TDD (up to a %28 of coverage over the controllersREST) with JUnit y Mockito.\n\u003e **Note:** everything that has been applied on the testing is purely recent since I’ve never realised this tests in my work environment. The source of my knowledge was academically speaking and own researches.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famaterazu7%2Fspringboot-crentalbikes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famaterazu7%2Fspringboot-crentalbikes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famaterazu7%2Fspringboot-crentalbikes/lists"}