-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from andreasgan/master
search
- Loading branch information
Showing
22 changed files
with
489 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,36 @@ | ||
help: .PHONY | ||
echo "Read the Makefile, im too lazy" | ||
|
||
dependencies: | ||
dependencies: .PHONY | ||
npm install -g pnpm | ||
go install -tags 'postgres' github.com/golang-migrate/migrate/v4/cmd/migrate@latest | ||
go install github.com/kyleconroy/sqlc/cmd/sqlc@latest | ||
|
||
local-setup: | ||
local-setup: .PHONY | ||
cp backend/.env.example backend/.env | ||
docker-compose up -d | ||
cd local-setup && docker-compose up -d | ||
make migrate | ||
docker-compose down | ||
cd frontend/admin | ||
pnpm install | ||
cd local-setup && docker-compose down | ||
cd frontend/admin && pnpm install | ||
|
||
admin-frontend: | ||
cd ./frontend/admin/ | ||
pnpm start | ||
admin-frontend: .PHONY | ||
cd ./frontend/admin/ && pnpm start | ||
|
||
admin-backend: | ||
admin-backend: .PHONY | ||
cd ./backend/admin/ && go run . | ||
|
||
migrate: | ||
m: .PHONY | ||
@echo migrate -database "postgres://postgres:password@localhost:5432/postgres?sslmode=disable" -path ./backend/db/migrations | ||
|
||
migrate: .PHONY | ||
migrate -database "postgres://postgres:password@localhost:5432/postgres?sslmode=disable" -path ./backend/db/migrations up | ||
|
||
mock: | ||
mock: .PHONY | ||
mock-dev custom -f ./backend/db/mock/mock_skeleton.yaml --database postgres -v --password password | ||
|
||
test-build: | ||
test-build: .PHONY | ||
docker build -t brunstadtv-admin-test:latest -f ./backend/Dockerfile.test ./backend --progress=plain | ||
|
||
test: | ||
test: .PHONY | ||
make test-build | ||
cd backend && go test ./... -v |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.