{"id":18036894,"url":"https://github.com/juliobetta/clojure-api","last_synced_at":"2025-04-05T00:14:53.728Z","repository":{"id":148491917,"uuid":"490446955","full_name":"juliobetta/clojure-api","owner":"juliobetta","description":"A toy API","archived":false,"fork":false,"pushed_at":"2022-05-09T21:15:59.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-10T08:29:44.187Z","etag":null,"topics":["learn-by-doing"],"latest_commit_sha":null,"homepage":"","language":"Clojure","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/juliobetta.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":"2022-05-09T21:15:40.000Z","updated_at":"2022-05-09T21:16:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"f148cdc1-14bf-4d50-baed-e76794586cd0","html_url":"https://github.com/juliobetta/clojure-api","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/juliobetta%2Fclojure-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juliobetta%2Fclojure-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juliobetta%2Fclojure-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juliobetta%2Fclojure-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/juliobetta","download_url":"https://codeload.github.com/juliobetta/clojure-api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247266566,"owners_count":20910836,"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":["learn-by-doing"],"created_at":"2024-10-30T12:14:48.585Z","updated_at":"2025-04-05T00:14:53.707Z","avatar_url":"https://github.com/juliobetta.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# clojure-api\n\nFIXME\n\n## Getting Started\n\n1. Start the application: `lein run`\n2. Go to [localhost:8080](http://localhost:8080/) to see: `Hello World!`\n3. Read your app's source code at src/clojure_api/service.clj. Explore the docs of functions\n   that define routes and responses.\n4. Run your app's tests with `lein test`. Read the tests at test/clojure_api/service_test.clj.\n5. Learn more! See the [Links section below](#links).\n\n\n## Configuration\n\nTo configure logging see config/logback.xml. By default, the app logs to stdout and logs/.\nTo learn more about configuring Logback, read its [documentation](http://logback.qos.ch/documentation.html).\n\n\n## Developing your service\n\n1. Start a new REPL: `lein repl`\n2. Start your service in dev-mode: `(def dev-serv (run-dev))`\n3. Connect your editor to the running REPL session.\n   Re-evaluated code will be seen immediately in the service.\n\n### [Docker](https://www.docker.com/) container support\n\n1. Configure your service to accept incoming connections (edit service.clj and add  ::http/host \"0.0.0.0\" )\n2. Build an uberjar of your service: `lein uberjar`\n3. Build a Docker image: `sudo docker build -t clojure-api .`\n4. Run your Docker image: `docker run -p 8080:8080 clojure-api`\n\n### [OSv](http://osv.io/) unikernel support with [Capstan](http://osv.io/capstan/)\n\n1. Build and run your image: `capstan run -f \"8080:8080\"`\n\nOnce the image it built, it's cached.  To delete the image and build a new one:\n\n1. `capstan rmi clojure-api; capstan build`\n\n## Connect IDE with running REPL\n\n_IntelliJ_\n* Go to Run \u003e Edit Configurations and add a Remote Clojure REPL.\n* Set Connection Type to nREPL.\n* Set Host to localhost and port to the one that appears in the output of `lein repl`.\n* Set Context Module to the current project.\n* Save and close the configuration.\n* Hit Run and you're ready to go.\n\nWhenever you change your code, hit command-shit-P to re-evaluate it in the REPL. \n\n## Links\n* [Other Pedestal examples](http://pedestal.io/samples)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuliobetta%2Fclojure-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjuliobetta%2Fclojure-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuliobetta%2Fclojure-api/lists"}