From 089051373ef2cef0e5cea39d0c7df5e6cb9e5cc7 Mon Sep 17 00:00:00 2001 From: Jason Hilder Date: Wed, 29 Apr 2026 08:13:48 +0200 Subject: [PATCH] No longer need makefile may reimplment later. --- Makefile | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 Makefile diff --git a/Makefile b/Makefile deleted file mode 100644 index 972e06c..0000000 --- a/Makefile +++ /dev/null @@ -1,30 +0,0 @@ -# Variables -HOST=http://localhost:3333 -COOKIE_FILE=cookies.txt - -run: - go run cmd/main.go - -# 1. Register a user -register: - curl -v POST $(HOST)/register \ - -d "email=jason@debian.org" \ - -d "password=pass123" - -# 2. Login and SAVE the cookie to a file -login: - curl -v POST $(HOST)/login \ - -d "email=jason@debian.org" \ - -d "password=pass123" \ - -c $(COOKIE_FILE) - -# 3. Access a protected route using the saved cookie -test-auth: - curl GET $(HOST)/users \ - -b $(COOKIE_FILE) - -# 4. Cleanup -clean-cookies: - rm -f $(COOKIE_FILE) - -.PHONY: run register login test-auth clean-cookies