-
Notifications
You must be signed in to change notification settings - Fork 295
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat/add makefile #118
Open
HelioDantas
wants to merge
30
commits into
SOS-RS:develop
Choose a base branch
from
HelioDantas:feat/add-makefile
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Feat/add makefile #118
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
cf6d152
Makefile
ppastorf eed5cb3
usando diretivas de Makefile no workflow de deploy
ppastorf df1909b
Makefile: rebase com alteracoes no readme
ppastorf 33c16ae
doc: adicionando make para inclui comandos para facilitar o setup da …
HelioDantas f6eed88
build: add-makefile - instalar makefile para usos dentro do container…
HelioDantas fc75fd2
doc: removendo descrição duplicada
HelioDantas 5e72d2f
docs: improve readme file with discord link
RogerioPiatek e5148ff
docs: updated to the link 'discord.gg/sosrs'
RogerioPiatek 9380c9c
docs: changed discord link position
filipepacheco 1210f82
docs: add templeate for PR
LeoFC97 f1416e5
feat: only show contact on shelter public routes on authorized roles
kelvinsb e2c6242
fix: remove unused and unauthorized contact field on list route
kelvinsb e23440c
feat: return contact when user logged, instead of some Roles
kelvinsb 1bd35da
fix: suggestions about separation
kelvinsb 6f8b860
Criação do endpoint para busca de cidades dos abrigos (#82)
AndersonCRocha 391607a
feat: add shelter filter by geolocation radius (#93)
AndersonCRocha e8e3607
Fixing discord link on Readme (#95)
filipepacheco a81c9b6
feat: added default updated at in new shelter to avoid null field in …
fagundesjg ce67813
hotfix: login issue
fagundesjg 9732790
Fix tests (#78)
giggio 0e1a7a1
feat: added partners endpoint (#106)
fagundesjg b62302d
fix: Correção da issue #146 do frontend. (#105)
kevinpiske 591eca2
feat: Add description and including a bearer token in swagger in user…
w-araujo 037479c
fix: city filter (#116)
fagundesjg e18bbfa
doc: adicionando make para inclui comandos para facilitar o setup da …
HelioDantas d418b27
build: add-makefile - instalar makefile para usos dentro do container…
HelioDantas 9d2c144
doc: removendo descrição duplicada
HelioDantas 0199bcc
Merge branch 'feat/add-makefile' of https://github.com/HelioDantas/ba…
HelioDantas c743a8c
doc: colocando comandos makes no formato de tabela
HelioDantas fe4816b
fix: corrigindo comando make para rodar as migrations
HelioDantas File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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 |
---|---|---|
@@ -0,0 +1,97 @@ | ||
.PHONY: * | ||
|
||
TAG_OR_COMMIT := $(shell git describe --tags --always) | ||
DOCKER_REGISTRY = ghcr.io | ||
IMAGE_NAME = $(DOCKER_REGISTRY)/sos-rs/backend | ||
CONTAINER_BACKEND = sos-rs-api | ||
|
||
install: | ||
@npm install | ||
|
||
prisma: | ||
@npx prisma generate | ||
@npm run migrations:dev | ||
|
||
setup: | ||
make file-mode | ||
make create.env.file | ||
@$(MAKE) install | ||
@$(MAKE) prisma | ||
|
||
file-mode: | ||
@echo "Configuring git fileMode to false" | ||
git config core.fileMode false | ||
|
||
create.env.file: | ||
if [ ! -f .env ]; then \ | ||
cp .env.local .env; \ | ||
fi | ||
|
||
start: | ||
@$(MAKE) setup | ||
@npm run start:dev | ||
|
||
start-debug: | ||
@$(MAKE) setup | ||
@npm run start:debug | ||
|
||
build: | ||
@npm run build | ||
|
||
clean: | ||
@rm -rf dist | ||
|
||
format: | ||
@npm run format | ||
|
||
lint: | ||
@npm run lint | ||
|
||
test: | ||
@npm run test | ||
|
||
test-coverage: | ||
@npm run test:cov | ||
|
||
test-debug: | ||
@npm run test:debug | ||
|
||
test-e2e: | ||
@npm run test:e2e | ||
|
||
dev-up: | ||
@docker-compose -f docker-compose.dev.yml up -d --build | ||
|
||
setup-docker: | ||
make file-mode | ||
make create.env.file | ||
make dev-up | ||
|
||
dev-down: | ||
@docker-compose -f docker-compose.dev.yml down | ||
|
||
bash: | ||
docker exec -it ${CONTAINER_BACKEND} sh | ||
|
||
dev-logs: | ||
docker-compose -f docker-compose.dev.yml logs -f | ||
|
||
dev-db-load-dump: | ||
@docker-compose -f docker-compose.dev.yml cp prisma/dev_dump.sql db:/tmp/backup.sql | ||
@docker-compose -f docker-compose.dev.yml exec db psql -U root -d sos_rs -f /tmp/backup.sql | ||
|
||
# Para ser usado no workflow de build | ||
docker-build: | ||
@docker build . -t sos-rs-backend | ||
|
||
docker-tag: | ||
@docker tag sos-rs-backend $(IMAGE_NAME):$(TAG_OR_COMMIT) | ||
@docker tag sos-rs-backend $(IMAGE_NAME):latest | ||
|
||
# Para ser usado no workflow de deploy | ||
prod-up: | ||
@docker-compose -f docker-compose.yml up -d --build --force-recreate | ||
|
||
prod-down: | ||
@docker-compose -f docker-compose.yml down --rmi all | ||
|
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Talvez utilizar uma tabela com a descrição dos comando deixe o readme mais limpo e mais fácil para leitura, tipo isso aqui:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
achei bem interessante o formato em tabela