Stripped out ui/api

This commit is contained in:
Benjamin Sherriff
2024-09-03 22:32:43 -04:00
committed by Benjamin Sherriff
parent c83d398ce0
commit 96fe3fc0e5
152 changed files with 110 additions and 10056 deletions

50
Makefile Normal file
View File

@@ -0,0 +1,50 @@
#!make
SHELL := /bin/bash
include .env
-include .env.local
export
.PHONY: help
help: ## Help command
@echo
@cat Makefile | grep -E '^[a-zA-Z\/_-]+:.*?## .*$$' | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
@echo
backend-up: ## Start the backend containers
@docker compose --profile backend up -d
backend-down: ## Stop the backend containers
@docker compose --profile backend down
run: ## Run the project
@echo "Running project..."
@cargo run
@echo "Run complete"
format: ## Format code
@echo "Formatting code..."
@cargo fmt
@echo "Format complete"
clean: ## Clean the project
@echo "Cleaning project..."
@cargo clean
@echo "Clean complete"
docker-up: ## Start the app
@docker compose --profile backend --profile siren up -d
docker-down: ## Stop the app
@docker compose --profile backend --profile siren down
docker-build: ## Build the docker image
@docker compose build
docker-clean: ## Stop the docker containers and remove volumes
@echo "Stopping docker container and removing volumes..."
@docker compose --profile backend --profile siren down -v
@echo "Docker container stopped and volumes removed"
docker-refresh: docker-clean backend-up ## Refresh the docker containers