{"id":22200272,"url":"https://github.com/http-kit/lein-template","last_synced_at":"2025-07-27T02:33:07.448Z","repository":{"id":7225290,"uuid":"8533109","full_name":"http-kit/lein-template","owner":"http-kit","description":"A Leiningen 2.0 template for Clojure web programming (working in progress)","archived":false,"fork":false,"pushed_at":"2016-04-06T00:59:48.000Z","size":145,"stargazers_count":40,"open_issues_count":1,"forks_count":10,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-05-09T12:09:31.276Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/http-kit.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}},"created_at":"2013-03-03T07:15:21.000Z","updated_at":"2021-05-08T19:00:32.000Z","dependencies_parsed_at":"2022-09-05T00:40:16.996Z","dependency_job_id":null,"html_url":"https://github.com/http-kit/lein-template","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/http-kit%2Flein-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/http-kit%2Flein-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/http-kit%2Flein-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/http-kit%2Flein-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/http-kit","download_url":"https://codeload.github.com/http-kit/lein-template/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227751136,"owners_count":17814297,"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-12-02T15:22:11.032Z","updated_at":"2024-12-02T15:22:11.548Z","avatar_url":"https://github.com/http-kit.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lein-template\n\nA Leiningen 2.0 template for Clojure web programming (working in progress)\n\n\n# How to install\n\nAdd the following to your `~/.lein/profiles.clj`\n\n```clj\n{:user {:plugins [\n                  [http-kit/lein-template \"1.0.0-SNAPSHOT\"]\n                  ]}}\n```\n\nUse it:\n\n```sh\nlein new http-kit your.project.name\n```\n\nFor example:\n\n```sh\nlein new http-kit clj_web \u0026\u0026 cd clj_web\n\n=\u003e\n├── README.md\n├── project.clj\n├── public\n│   ├── css\n│   │   ├── bootstrap-responsive.css\n│   │   ├── bootstrap.css\n│   │   └── style.css\n│   ├── img\n│   │   ├── glyphicons-halflings-white.png\n│   │   └── glyphicons-halflings.png\n│   └── js\n│       └── lib\n│           ├── bootstrap.js\n│           └── jquery-1.9.1.js\n├── scripts\n│   └── run\n├── src\n│   ├── clj_web\n│   │   ├── config.clj\n│   │   ├── handlers\n│   │   │   ├── api.clj\n│   │   │   └── app.clj\n│   │   ├── main.clj\n│   │   ├── middleware.clj\n│   │   ├── routes.clj\n│   │   └── tmpls.clj\n│   ├── logback.xml\n│   └── templates\n│       ├── landing.tpl\n│       └── partials\n│           └── header.tpl\n└── test\n    ├── clj_web\n    │   ├── app_test.clj\n    │   └── test_common.clj\n    └── logback-test.xml\n\n```\n\n### Start the a server for local testing\n\n```sh\n./scripts/run\n```\n\n### Run unit test\n\n```sh\nlein test\n```\n\n### Template (Mustache)\n\nMustache is easy to learn. I've used it in severial projects, and quite happy with it.\nfiles in src/templates, a Clojure function is created according to tempalte name, eg:\n\n`landing.tpl` =\u003e `lein-template.tmpl/landing`\n\n### Deploy\n\n1. `lein uberjar` create a standalone executable jar file in the target directory\n2. copy the jar and the `public` directory to your production server\n3. ```sh\njava -jar target/lein-template-standalone.jar --profile prod --port 8000\n```\n\n## License\n\nCopyright © 2013 Feng Shen\n\nDistributed under the Eclipse Public License, the same as Clojure.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhttp-kit%2Flein-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhttp-kit%2Flein-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhttp-kit%2Flein-template/lists"}