26 lines
749 B
Markdown
26 lines
749 B
Markdown
# Code Snippets
|
|
|
|
App to store my code snippets.
|
|
|
|
## Links
|
|
|
|
- [reitit docs](https://cljdoc.org/d/metosin/reitit/0.9.1/doc/introduction)
|
|
- [basic web development clojure tutorial](https://clojure-doc.org/articles/tutorials/basic_web_development/)
|
|
- [reitit malli coercion](https://cljdoc.org/d/metosin/reitit/0.9.1/doc/coercion/malli)
|
|
- [malli docs](https://github.com/metosin/malli)
|
|
|
|
## Dev
|
|
|
|
### How to run dev server
|
|
|
|
```
|
|
$ clojure -M -m snippets.infra.api
|
|
```
|
|
|
|
### How to create docker image
|
|
|
|
At this point I'm using a private AWS ECR repository for the project and deploying it in my homelab.
|
|
|
|
```shell
|
|
$ docker buildx build --platform linux/amd64,linux/arm64 -t 853019563312.dkr.ecr.eu-central-1.amazonaws.com/code-snippets:latest --push .
|
|
```
|