- Move/upgrade from depstar to tools.build
- Properly setup static resouces with cache-busting; wrap-resource in
leihs.inventory.server.swagger-api, see exemplary use of
leihs.core.http-cache-buster2
in leihs-admin; - Deliver SPA depending on accept headers, see leihs-admin
- Add container build test; see leihs-admin
- Add deploy role in this repository, madek-api-v2 for example
# to build latest FE and run BE
npm inst
npm run build
bin/dev-run-backend
Install and start:
bin/dev-run-frontend
For a quicker start when already installed before:
npm run dev
npx i18next-locales-sync -p de -s fr es en -l resources/public/inventory/static/locales/ --spaces 2 --useEmptyString true
Use ./bin/cljfmt check
and ./bin/cljfmt fix
.
From vim you can use :! ./bin/cljfmt fix %
to format the current file.
Use standardrb
and standardrb --fix
.
See ./bin/build
-
/inventory
http://localhost:8080/# leihs/inventory ./bin/dev-run-backend
/inventory
http://localhost:3260/
SeeSESSION_HANDLING_ACTIVATED?
# leihs/inventory ./bin/dev-run-backend
- Proxy
http://localhost:3200/# leihs/integration-tests ./bin/start-reverse-proxy
/inventory
http://localhost:3260/# leihs/inventory ./bin/dev-run-backend
/my
(provides simple login)
http://localhost:3240/# leihs/my ./bin/dev-run-backend
- Legacy (not required)
# leihs/legacy ./bin/rails server -p 3210
./bin/build
scp leihs-inventory.jar <user>@<server>:/leihs/inventory/leihs-inventory.jar
systemctl restart leihs-inventory.service
# additional clojure-tests can be triggered by:
clojure -X:test