With a focus on clojure, clojurescript, and azure
You will need
Before your can run the package and deploy commands you'll need to create a file called .config.json
in the root of this project. It should look like this:
{
"docker_name_tag": "thing:v1",
"az_acr_repo": "repo",
"az_resource_group": "rg-name"
}
I'm using https://www.zeitverschiebung.net/en/all-time-zones.html to map time zones to cities. It should be refreshed frequently: $ clj -m time.scraper > src/data/zone-cities.edn
You can run the app using the server script
$ clj -A:dev -m server
It's recommended to use cider. There're already some defaults provided to start the server with dev. From cider just do (in-ns 'dev)
and evaluate the /scripts/dev.clj file. You'll have a server
variable which you can use like above.
Once the server has been started like above you can connect to the browser by starting the cider-jack-in-cljs
.
Compile the docker image using $ ./scripts/package.sh
. It can be run locally with $ ./scripts/docker-server.sh
and deployed to the remote registery with $ ./scripts/deploy.sh
.
Copyright © 2020 FIXME