2 ms·
That's precisely the problem that Luminus [1] solves. It provides a batteries included template that follows best practices as well as documentation on how you
by yogthos 8y ago
That's precisely the problem that Luminus [1] solves. It provides a batteries included template that follows best practices as well as documentation on how you would accomplish many common tasks. Making an app is quite straight forward, and all you need is Leiningen [2] and a JDK. For example, you could do:
lein new luminus myapp +postgres +auth +swagger
This will create an app using Postgres as the database with a Swagger UI set up out of the box.
During development mode you'd run the app with:
lein run
Any changes you make in the source will be automatically reflected when you reload the page. You can also connect the editor to the REPL that gets started on port 7000 by default.
You can package this app for production with:
lein uberjar
and you can run the resulting jar as:
java -jar -Dconf=config.edn myapp.jar
You really don't have to hand roll your app and go hunting for libraries unless that's something you want to do.
[1] http://www.luminusweb.net/ http://www.luminusweb.net/
[2] https://leiningen.org/ https://leiningen.org/