Commit Diff


commit - 2da319790969b8be4316442c080fb3b01b6bf4e1
commit + 9cef0f317bc801214b12d78383a86affae2aa9c2
blob - f3f2cbdeb281ebd0c684b5389bada54b6f087e61 (mode 644)
blob + /dev/null
--- Makefile
+++ /dev/null
@@ -1,32 +0,0 @@
-.PHONY: all build format lint check clean run
-
-AUTH_TOKEN := demo
-BASE_URL := http://localhost
-PORT := 4000
-DB_PATH := shirts.db
-
-export AUTH_TOKEN
-export BASE_URL
-export PORT
-export DB_PATH
-
-all: build
-
-build:
-	mix deps.get
-	mix compile
-
-run:
-	mix run --no-halt
-
-format:
-	mix format
-
-lint:
-	mix credo --strict
-
-check:
-	mix dialyzer
-
-clean:
-	mix clean
blob - b7b692ef95c8974eb0e19479274c393fbc44d791
blob + c63400af81d796fe6fc4abd79cece8bc157f80e0
--- flake.nix
+++ flake.nix
@@ -9,7 +9,7 @@
     beamPackages = pkgs.beam.packages.erlang_28;
   in {
     devShells.x86_64-linux.default = pkgs.mkShell {
-      buildInputs = [beamPackages.elixir beamPackages.erlang beamPackages.expert pkgs.git];
+      buildInputs = [beamPackages.elixir beamPackages.erlang beamPackages.expert pkgs.git pkgs.just];
       shellHook = ''
         mix deps.get
       '';
blob - /dev/null
blob + 0f11e17583ed46319f6c76600318bd485344c0e0 (mode 644)
--- /dev/null
+++ justfile
@@ -0,0 +1,33 @@
+export AUTH_TOKEN := "demo"
+export BASE_URL := "http://localhost"
+export PORT := "4000"
+export DB_PATH := "shirts.db"
+
+# List available recipes
+default:
+    @just --list
+
+# Fetch deps and compile
+build:
+    mix deps.get
+    mix compile
+
+# Run the server
+run:
+    mix run --no-halt
+
+# Format sources
+format:
+    mix format
+
+# Lint with credo
+lint:
+    mix credo --strict
+
+# Type-check with dialyzer
+check:
+    mix dialyzer
+
+# Remove build artifacts
+clean:
+    mix clean