Add configuration files and update project documentation
- Introduced .editorconfig for consistent coding styles across the project. - Added .golangci.yml for Go linting configuration. - Updated AGENTS.md to clarify project structure and components. - Enhanced CONTRIBUTING.md with Makefile usage for common tasks. - Updated Dockerfiles to use Go 1.24 and improved build instructions. - Refined README.md and deployment documentation for clarity. - Added testing documentation in testing.md for backend and frontend tests. - Introduced Makefile for streamlined development commands and tasks.
This commit is contained in:
26
Makefile
Normal file
26
Makefile
Normal file
@@ -0,0 +1,26 @@
|
||||
.PHONY: dev build test lint fmt generate-frontend clean
|
||||
|
||||
dev:
|
||||
docker compose -f docker-compose.dev.yml up
|
||||
|
||||
build:
|
||||
docker compose -f docker-compose.prod.yml build
|
||||
|
||||
test:
|
||||
go test ./...
|
||||
|
||||
lint:
|
||||
golangci-lint run
|
||||
npm --prefix frontend-nuxt run lint
|
||||
|
||||
fmt:
|
||||
go fmt ./...
|
||||
npm --prefix frontend-nuxt run format
|
||||
|
||||
generate-frontend:
|
||||
npm --prefix frontend-nuxt run generate
|
||||
rm -rf frontend/*
|
||||
cp -a frontend-nuxt/.output/public/. frontend/
|
||||
|
||||
clean:
|
||||
rm -rf frontend-nuxt/.nuxt frontend-nuxt/.output frontend-nuxt/.cache hnh-map
|
||||
Reference in New Issue
Block a user