ozon-task/Makefile
erius e0aa12b126 Separated graphql schema into multiple files and moved them to graph/schema dir, update the gqlgen.yml accordingly
Removed unnecesary bindings for ID and Int in gqlgen.yml
Minor changes to Makefile docker-clean target
Reduced docker-compose postgres healthcheck interval for faster local db connections
Added pagination to graphql schema, the paginated queries are WIP
Removed unneeded fields from the model structs
Added allowComment check when adding comments
Switched gorm logger to Info mode
App now panics if the specified APP_STORAGE in env doesn't exist
Reworked database methods, still barely working and are WIP
2024-06-26 04:45:04 +03:00

19 lines
526 B
Makefile

docker-postgres: docker
docker compose -f deployments/docker-compose/postgres/docker-compose.yml up
docker-standalone: docker
docker compose -f deployments/docker-compose/standalone/docker-compose.yml up
docker: go-generate Dockerfile
docker build --tag ozon-task .
go-generate:
go generate ./...
clean: docker-clean
docker-clean:
-docker container rm postgres-ozon-task-1 postgres-postgres-1 standalone-ozon-task-1;\
docker volume rm postgres_postgres-data;\
docker network rm postgres_default standalone_defaul\