{"id":16229157,"url":"https://github.com/dplaton/spark-fortune","last_synced_at":"2025-10-14T17:17:22.738Z","repository":{"id":70451044,"uuid":"58625020","full_name":"dplaton/spark-fortune","owner":"dplaton","description":"Small \"fortune cookie\" service based on the Spark micro-framework","archived":false,"fork":false,"pushed_at":"2016-05-13T07:20:42.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-09-06T22:42:32.871Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","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/dplaton.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":"2016-05-12T08:54:59.000Z","updated_at":"2016-05-12T08:55:18.000Z","dependencies_parsed_at":"2023-03-01T19:45:57.165Z","dependency_job_id":null,"html_url":"https://github.com/dplaton/spark-fortune","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dplaton/spark-fortune","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dplaton%2Fspark-fortune","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dplaton%2Fspark-fortune/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dplaton%2Fspark-fortune/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dplaton%2Fspark-fortune/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dplaton","download_url":"https://codeload.github.com/dplaton/spark-fortune/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dplaton%2Fspark-fortune/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279020074,"owners_count":26086805,"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-10-14T02:00:06.444Z","response_time":60,"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":[],"created_at":"2024-10-10T12:57:33.507Z","updated_at":"2025-10-14T17:17:22.733Z","avatar_url":"https://github.com/dplaton.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"Spark Fortune - A web wrapper for the popular bash program\n===\n\nThis is a small wrapper around the popular bash command \"fortune\". This was built in a few hours with the sole purpose of having fun while testing out Spark micro-framework.\n\n## Prerequisites\n\n* Java 8\n* Maven\n* Fortune (so this won't probably run on Windows)\n\n\n## Building the source code\nTo build the source code run a ``mvn clean package`` in the root folder, then a ``java -jar spark-fortune-1.0-jar-with-dependencies.jar`` in the target folder.\n\n## Using docker\n\nYou can spawn a [Docker](http://www.docker.com) container using the attached Dockerfile. Just use \n\n```\ndocker build -t spark-fortune .\n``` \n\nto build the container (first build will take some time to set up) and then \n\n```\ndocker run -d -p 4567:4567 spark-fortune\n``` \n\nto run it.\n\n## Endpoints\n### Root endpoint\nDoes nothing\n\n### Echo endpoint\n\n```\ncurl -i --data \"message=your message here\" http://localhost:4567/echo \n```\nwill echo the message back\n\n### Fortune endpoint\n```\ncurl -i http://localhost:4567/fortune\n```\nWill return a \"fortune\" message. Use the ``http://localhost:4567/fortune/offensive`` to get the good ones.\n\n\n\n##Useful links:\n\n* [Spark Java documentation](http://sparkjava.com/documentation.html)\n* [Getting started with Spark and Docker](https://sparktutorials.github.io/2015/04/14/getting-started-with-spark-and-docker.html)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdplaton%2Fspark-fortune","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdplaton%2Fspark-fortune","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdplaton%2Fspark-fortune/lists"}