https://github.com/gered/simple-web-service-template
Simple Clojure web service project template.
https://github.com/gered/simple-web-service-template
Last synced: 8 months ago
JSON representation
Simple Clojure web service project template.
- Host: GitHub
- URL: https://github.com/gered/simple-web-service-template
- Owner: gered
- License: mit
- Created: 2021-12-21T23:38:16.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-07-04T15:53:32.000Z (almost 3 years ago)
- Last Synced: 2025-10-21T22:36:39.703Z (8 months ago)
- Language: Clojure
- Size: 20.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Leiningen Template: Simple Clojure Web Service
A Leiningen template intended for creating new Clojure web service projects utilizing [reitit](https://github.com/metosin/reitit).
This template primarily exists for my own personal use, so some stuff is definitely more oriented towards
my own particular preferences regarding setup and organization of a Clojure project.
## Usage
```text
$ lein new net.gered/simple-web-service [your-project-name-here]
```
The resulting project starts up via a `main` function and during startup expects to be able to read an EDN
configuration file located in the current working directory called `config.edn`.
The project can be run simply by:
```text
$ lein run
```
A nREPL server will be started which can be connected to on port 7000 (configured via the aforementioned `config.edn`).
The web service's endpoints will be accessible over port 8080 (again, configured via the aforementioned `config.edn`).
The Swagger UI page will be available at `/api-docs/` e.g. http://localhost:8080/api-docs/
## Other Templates!
I have a few other "simple" Leiningen project templates that are along the same vein as this one:
* [Simple Clojure App](https://github.com/gered/simple-app-template) - Very simple starter base for non-web projects.
* [Simple Clojure Web Site](https://github.com/gered/simple-web-site-template) - For web sites using only server-side rendered HTML (**no** ClojureScript!).
* [Simple Clojure / ClojureScript Web App](https://github.com/gered/simple-web-app-template) - For web apps using Clojure and ClojureScript.
## License
Copyright © 2021 Gered King
Distributed under the the MIT License. See LICENSE for more details.