Skip to content

Commit

Permalink
refactor(api-clients): generate convoy client
Browse files Browse the repository at this point in the history
  • Loading branch information
balzdur committed Jul 12, 2024
1 parent d7575ce commit 5a25ae7
Show file tree
Hide file tree
Showing 12 changed files with 5,475 additions and 2,023 deletions.
9 changes: 9 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
help: ## Display this help
@egrep -h '\s##\s' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m %-30s\033[0m %s\n", $$1, $$2}'

generate_migration: ## Generate a new migration
@read -p "Enter migration name: " name; \
goose -dir repositories/migrations/ create $$name sql

generate_api_clients: ## Generate API clients
go generate ./api-clients/convoy/generate.go
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,21 @@ Migrations are located in the `repositories/migrations` folder.

Execute the program with flags `-migrations` to run migrations

To create a new migration, you can use the following command:

```sh
make generate_migration
```

## FAQ

### How to update firebase local data ?

- Run firebase emulator with paramater: `--export-on-exit`
- Add user, change options...
- Exit the emulator
- commit

> NB: The data will be saved in the `./firebase-local-data` folder. If you want to share the data, you can copy it to `./firebase-local-data.example` and commit it.
### How to reset the DB ?

Expand Down
Loading

0 comments on commit 5a25ae7

Please sign in to comment.