{"id":46879032,"url":"https://github.com/phillipsk/wordcounter","last_synced_at":"2026-03-10T21:01:04.403Z","repository":{"id":81515962,"uuid":"469128759","full_name":"phillipsk/wordCounter","owner":"phillipsk","description":null,"archived":false,"fork":false,"pushed_at":"2022-03-21T11:54:11.000Z","size":72,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2023-12-30T06:50:21.702Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Kotlin","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/phillipsk.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":"2022-03-12T15:54:37.000Z","updated_at":"2023-12-30T06:50:21.703Z","dependencies_parsed_at":"2026-03-10T21:00:37.523Z","dependency_job_id":null,"html_url":"https://github.com/phillipsk/wordCounter","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"purl":"pkg:github/phillipsk/wordCounter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phillipsk%2FwordCounter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phillipsk%2FwordCounter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phillipsk%2FwordCounter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phillipsk%2FwordCounter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phillipsk","download_url":"https://codeload.github.com/phillipsk/wordCounter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phillipsk%2FwordCounter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30355223,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T15:55:29.454Z","status":"ssl_error","status_checked_at":"2026-03-10T15:54:58.440Z","response_time":106,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":[],"created_at":"2026-03-10T21:00:31.706Z","updated_at":"2026-03-10T21:01:04.340Z","avatar_url":"https://github.com/phillipsk.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wordCounter\n\n### Project overview\n- WordCounter - Spring Boot Java JPA persisted Kotlin word counter application\n- This application is built on Spring Boot web server\n- Spring Boot Java/H2 Datasource is used as a lightweight database\n- Developer: Kevin Phillips\n\n### Use Case\n- Accept a JSON POST request to `/wordCount` endpoint and return a count of the words contained in the POST Body\n- Handling: Only return a word count response if the ID is unique -\u003e disregard duplicate IDs\n\n### Instructions\n- IntelliJ IDEA IDE\n  - clone repository and run the application to start the server\n- Run `runWordCounter.sh` shell script on a UNIX terminal OR copy and paste each cURL line from the script into a UNIX terminal\n\n### Run in terminal  \n1. Clone the repository\n2. Use the terminal to change directory `cd wordCounter/` into the root folder \n3. Start the Spring Boot server with `./gradlew bootRun`\n4. Open a secondary terminal to run the script\n5. `chmod u+x runWordCounter.sh` enables the file to become an executable shell script \n6. `./runWordCounter.sh ` run the script\n7. If you run the script twice - no output is returned\n   - This is accurate - the use case is to prevent storage and response from duplicate IDs responses received \n   - Change the ID fields of the JSON input to test \n   - Change the message \"hello world\" to test\n\n### Notes\n- src/main/resources/application.properties -\u003e Spring Datasource SQL schema properties\n- src/main/resources/sql/schema.sql -\u003e Spring Datasource SQL Database install script\n### Troubleshoot the Database\n- The Spring Datasource Database will be created in the /data/ folder within the project path\n- Try deleting the *.sql files within this folder to remove and reset the persisted database\n\n\n### References\n- https://docs.spring.io/spring-data/jpa/docs/2.4.5/reference/html/#jpa.query-methods.at-query\n- https://spring.io/guides/tutorials/spring-boot-kotlin/\n- https://kotlinlang.org/docs/jvm-spring-boot-restful.html\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphillipsk%2Fwordcounter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphillipsk%2Fwordcounter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphillipsk%2Fwordcounter/lists"}