No description
Find a file
Travis Shears 5fad04d04c
fix update-snippet
Created via bruno",
Updated via bruno"
does a cool thing",
2026-03-10 17:53:28 +01:00
bruno/CodeSnippets fix update-snippet 2026-03-10 17:53:28 +01:00
old_snippets add the old snippet md files 2025-06-05 16:21:24 +02:00
src/snippets fix update-snippet 2026-03-10 17:53:28 +01:00
test init biff project 2025-06-04 10:47:56 +02:00
.dockerignore init biff project 2025-06-04 10:47:56 +02:00
.gitignore init biff project 2025-06-04 10:47:56 +02:00
build.clj get docker uberjar working 2025-06-07 16:06:13 +02:00
build.sh add build script 2025-11-01 17:50:50 +01:00
CLAUDE.md init xtdb -> datomic refactor 2026-03-10 10:35:25 +01:00
cljfmt-indents.edn init biff project 2025-06-04 10:47:56 +02:00
deps.edn init xtdb -> datomic refactor 2026-03-10 10:35:25 +01:00
Dockerfile get docker uberjar working 2025-06-07 16:06:13 +02:00
LICENSE.md add license 2025-06-05 09:48:56 +02:00
README.md fix update-snippet 2026-03-10 17:53:28 +01:00
server-setup.sh init biff project 2025-06-04 10:47:56 +02:00

Code Snippets

Backend application to store my code snippets and make them available via REST API.

TUI CMS / MCP server companion project

This project is written in Clojure and data is stored in XTDB.

Dev

How to run dev server

Run the server

$ clojure -M -m snippets.main

Hot reload:

$ fd -e clj | entr -r clojure -M -m snippets.main

Repl

$ rlwrap clojure
; print stuff
(clojure.pprint/pprint {:name "Alice" :age 30})
; import modules
(require 'clojure.string)
(require '[clojure.string :as str])
(require 'my.namespace :reload)
; list namespace contense
(dir clojure.string)
; Switch into a namespace
(in-ns 'my.namespace)
(in-ns 'user) 

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.

$ export AWS_PROFILE=personal
$ docker buildx build --platform linux/amd64,linux/arm64  -t 853019563312.dkr.ecr.eu-central-1.amazonaws.com/snippets-homelabstack:latest  --push .