feature: add api for categories

feature: add initial docker build and compose for development mode
This commit is contained in:
jon brookes 2026-01-15 15:29:42 +00:00
parent 6bf486e52b
commit f980be8e28
14 changed files with 520 additions and 0 deletions

11
cmd/build_container.sh Executable file
View file

@ -0,0 +1,11 @@
#!/usr/bin/env bash
LARAVEL_CONTAINER_NAME="quay.io/marshyon/share-lt"
CONTAINER_LABEL="0.0.1"
CACHE="--no-cache"
CACHE=""
docker build \
$CACHE \
-t ${LARAVEL_CONTAINER_NAME}:${CONTAINER_LABEL} \
-f Dockerfile .

15
cmd/curl_get_categories.sh Executable file
View file

@ -0,0 +1,15 @@
#!/usr/bin/env bash
# TOKEN="your_api_token_here"
# ensure to have set TOKEN to a valid value before running
# ideally add this to an .envrc file and source it
# tokens need to be created with tinker or similar method
URL='http://127.0.0.1:8000/api/categories'
curl -s -X GET \
-H "Authorization: Bearer $TOKEN" \
-H "Accept: application/json" \
$URL

14
cmd/curl_get_categories_anon.sh Executable file
View file

@ -0,0 +1,14 @@
#!/usr/bin/env bash
# TOKEN="your_api_token_here"
# ensure to have set TOKEN to a valid value before running
# ideally add this to an .envrc file and source it
# tokens need to be created with tinker or similar method
URL='http://127.0.0.1:8000/api/categories'
curl -s -X GET \
-H "Accept: application/json" \
$URL