{"id":16368953,"url":"https://github.com/apsdehal/lein-clj-service","last_synced_at":"2026-02-28T22:30:17.593Z","repository":{"id":34528202,"uuid":"38470875","full_name":"apsdehal/lein-clj-service","owner":"apsdehal","description":"Lein template for a clojure service.","archived":false,"fork":false,"pushed_at":"2015-07-03T21:44:53.000Z","size":152,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-31T08:25:52.512Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/apsdehal.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}},"created_at":"2015-07-03T03:56:00.000Z","updated_at":"2015-09-03T07:01:59.000Z","dependencies_parsed_at":"2022-09-14T14:22:15.767Z","dependency_job_id":null,"html_url":"https://github.com/apsdehal/lein-clj-service","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/apsdehal%2Flein-clj-service","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apsdehal%2Flein-clj-service/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apsdehal%2Flein-clj-service/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apsdehal%2Flein-clj-service/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/apsdehal","download_url":"https://codeload.github.com/apsdehal/lein-clj-service/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239878826,"owners_count":19712172,"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":[],"created_at":"2024-10-11T02:54:15.566Z","updated_at":"2026-02-28T22:30:17.513Z","avatar_url":"https://github.com/apsdehal.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Lein Clojure Service\n\nLeiningen template for a clojure based HTTP service. Following libraries are preincluded:\n\n - [Ring](https://github.com/mmcgrana/ring)\n - [Compojure](https://github.com/weavejester/compojure)\n - [Compojure-API](https://github.com/metosin/compojure-api)\n - [Ring-Swagger](https://github.com/metosin/ring-swagger)\n\n## Usage\n\nTo create a new service, add the following to your lein `~/.lein/profiles.clj`\n\n```clj\n{:user {:plugins [[clj-service/lein-template \"LATEST\"]]}}\n```\n\nAfter this you can create the service with:\n\n```\nlein new clj-service \u003cproject-name\u003e\n```\n\nThis will prompt for base path and port number of the service. Base path is where you main code will lie. For e.g passing `com/sdslabs` with name `lens` will create all code in `src/com/sdslabs/lens`.\n\nExample:\n\n```\nlein new clj-service lens\n```\n\nEvery service should have a unique port locally so that you can run more than one service locally.\n\n## Service\n\nYour service consists of three functions:\n\n__initialize!__: Sets up the global state.\n\n__Handler function__: Takes the request\n\n__destroy__: Destroys global state.\n\n## License\n\nDistributed under the [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.html)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapsdehal%2Flein-clj-service","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapsdehal%2Flein-clj-service","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapsdehal%2Flein-clj-service/lists"}