Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
106 commits
Select commit Hold shift + click to select a range
a75de8c
change: remove
smooth-55 Oct 7, 2023
ea2d351
feat: create new app script
smooth-55 Oct 7, 2023
7f90d8d
.gitkeep
smooth-55 Oct 7, 2023
2d98528
feat: create-app command
smooth-55 Oct 7, 2023
782b8db
feat: new app template
smooth-55 Oct 7, 2023
a2b23f6
feat: create new app script
smooth-55 Oct 7, 2023
c479a5c
gitkeep
smooth-55 Oct 7, 2023
2cee657
change: bootstrap
smooth-55 Oct 7, 2023
2adb277
feat: installed app
smooth-55 Oct 7, 2023
df5838d
feat: router config
smooth-55 Oct 7, 2023
539c505
feat: helper base model
smooth-55 Oct 7, 2023
3c461d8
feat: auth middleware constructor
smooth-55 Nov 8, 2023
cb41f24
chore: dependency injection
smooth-55 Nov 8, 2023
77840e3
chore: .yml
smooth-55 Nov 8, 2023
27b46bb
change: comment bucket storage
smooth-55 Nov 8, 2023
485c353
chore: dependency
smooth-55 Nov 14, 2023
c275a67
change: package
smooth-55 Nov 14, 2023
745f4ef
feat: inject auth command
smooth-55 Nov 14, 2023
d88e8b2
feat: jwt controller
smooth-55 Nov 14, 2023
c0c0481
feat: login request dto
smooth-55 Nov 14, 2023
bc7e7c2
chore: dependency injection
smooth-55 Nov 14, 2023
7e154cc
feat: jwt service
smooth-55 Nov 14, 2023
7d66064
feat: jwt routers
smooth-55 Nov 14, 2023
85b792d
feat: user controller
smooth-55 Nov 14, 2023
f22176a
feat: user dto
smooth-55 Nov 14, 2023
47285a5
chore: dependency injection
smooth-55 Nov 14, 2023
5ba2348
feat: helpers
smooth-55 Nov 14, 2023
c8a7b17
feat: user model
smooth-55 Nov 14, 2023
83b0d79
feat: user pagination
smooth-55 Nov 14, 2023
430cd88
feat: user repository
smooth-55 Nov 14, 2023
ef6be75
feat: user service
smooth-55 Nov 14, 2023
6370a3b
feat: user validator
smooth-55 Nov 14, 2023
0e2e072
feat: user route
smooth-55 Nov 14, 2023
a0aadd3
feat: inject auth script
smooth-55 Nov 14, 2023
53a030a
change: add trx middleware
smooth-55 Nov 14, 2023
cfbd250
change: add to config
smooth-55 Nov 14, 2023
bd11fd0
feat: installed routes
smooth-55 Nov 14, 2023
97a7de4
feat: router config
smooth-55 Nov 14, 2023
70faf8d
change: gender constant
smooth-55 Nov 14, 2023
46d4ed4
feat: base model
smooth-55 Nov 14, 2023
6c9122a
feat: base pagination
smooth-55 Nov 14, 2023
4f1d11e
feat: jwt middleware
smooth-55 Nov 14, 2023
4453d2c
feat: db trx middleware
smooth-55 Nov 14, 2023
9519930
chore: dependency injection
smooth-55 Nov 14, 2023
edc08ef
chore: update gender column
smooth-55 Nov 14, 2023
5d8f666
change: remove unwanted file
smooth-55 Nov 14, 2023
a29fcff
change: template
smooth-55 Nov 14, 2023
7bcbad1
change: package_name
smooth-55 Nov 14, 2023
3685edd
change: package_name
smooth-55 Nov 14, 2023
26e9318
change: package_name
smooth-55 Nov 14, 2023
b1de280
change: package_name
smooth-55 Nov 14, 2023
883dfc6
change: script
smooth-55 Nov 14, 2023
bd12910
change: remove jwt auth code
smooth-55 Nov 14, 2023
2014b8e
change: remove jwt
smooth-55 Nov 14, 2023
5d4f088
feat: inject auth script
smooth-55 Nov 14, 2023
18d2247
.geetkeep
smooth-55 Nov 14, 2023
044202e
feat: jwt templates
smooth-55 Nov 14, 2023
ed75caf
change: remove auth injection
smooth-55 Nov 14, 2023
f8904d1
feat: dependency injection script
smooth-55 Nov 15, 2023
a3bfc5a
feat: gin-watch script
smooth-55 Nov 16, 2023
02a7ff9
chore: rate limit
smooth-55 Nov 21, 2023
38340f1
feat: setup rate limit middleware
smooth-55 Nov 21, 2023
d762e95
feat: rate limit
smooth-55 Nov 21, 2023
5200bec
change: templates
smooth-55 Nov 21, 2023
d115b38
change: script
smooth-55 Nov 21, 2023
a98e48a
chore: middleware
smooth-55 Nov 21, 2023
992b384
Revert "chore: middleware"
smooth-55 Nov 21, 2023
f45e53a
Revert "change: script"
smooth-55 Nov 21, 2023
34114c0
Revert "change: templates"
smooth-55 Nov 21, 2023
ee2678e
Revert "feat: rate limit"
smooth-55 Nov 21, 2023
6687fab
Revert "feat: setup rate limit middleware"
smooth-55 Nov 21, 2023
8d58545
Revert "chore: rate limit"
smooth-55 Nov 21, 2023
6d49b21
change: refactor
smooth-55 Nov 21, 2023
8f58685
change: script
smooth-55 Nov 21, 2023
fe5b0d6
change: init template
smooth-55 Nov 21, 2023
6a3cc24
fix: import cycle issue
smooth-55 Nov 21, 2023
b05add5
Merge branch 'clean-architecture' of https://github.com/readytowork-o…
smooth-55 Nov 21, 2023
5aa001d
change: script
smooth-55 Nov 21, 2023
a1d0a65
fix: typo
smooth-55 Nov 21, 2023
13c3df3
change: template
smooth-55 Nov 21, 2023
8b9331b
change: script
smooth-55 Nov 21, 2023
8fe74d5
change: return type
smooth-55 Nov 21, 2023
1349263
feat: setup middleware
smooth-55 Nov 21, 2023
7fe50ee
change: template
smooth-55 Nov 21, 2023
67d33a9
chore: bootstrap
smooth-55 Nov 21, 2023
f5b607c
feat: rate limit middleware
smooth-55 Nov 22, 2023
375f496
chore: dependency
smooth-55 Nov 22, 2023
0e870c7
chore: remove unused dependency
smooth-55 Nov 22, 2023
59b9ccb
feat: inject fb script
smooth-55 Nov 22, 2023
7edffcc
feat: fb templates
smooth-55 Nov 22, 2023
1c57261
chore: remove unused packages
smooth-55 Nov 22, 2023
87e8b41
refactor: move common codebase to common directory
smooth-55 Jan 5, 2024
b48446c
chore: user table migration
smooth-55 Jan 5, 2024
4d58550
chore: dbconfig for sql-migrate
smooth-55 Jan 5, 2024
afb9827
fix: update make command for migration
smooth-55 Jan 5, 2024
1dd2744
chore: add rubenv/sql-migrate to install
smooth-55 Jan 5, 2024
c20ee4e
fix: template imports
smooth-55 Jan 5, 2024
fec731b
chore: uninstall dependency
smooth-55 Jan 22, 2024
3fd4656
fix: firebase infrastructure script
smooth-55 Jan 22, 2024
4f264e1
fix: imports
smooth-55 Jan 22, 2024
c2d1250
fix: firebase infrastructure template
smooth-55 Jan 22, 2024
fdfebfc
chore: infrastructure dependency injection
smooth-55 Jan 22, 2024
5bca21d
refactor: remove unwanted code
smooth-55 Jan 22, 2024
b5bd3ed
chore: install sql migrate
smooth-55 Jan 23, 2024
df161fc
feat: migration from go code
smooth-55 Jan 23, 2024
4ccb302
Merge branch 'develop' of https://github.com/readytowork-org/go-gin-s…
smooth-55 Jan 23, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 29 additions & 17 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,29 +1,35 @@
include .env
MIGRATE=docker-compose exec web migrate -path=migration -database "mysql://${DB_USERNAME}:${DB_PASSWORD}@tcp(${DB_HOST}:${DB_PORT})/${DB_NAME}" -verbose
export
RUNNER=docker-compose exec web sql-migrate

ifeq ($(p),host)
RUNNER=sql-migrate
endif

MIGRATE=$(RUNNER)

dev:
bash automate/scripts/gin-watch.sh ${SERVER_PORT}

create:
@read -p "What is the name of migration?" NAME; \
$(MIGRATE) new $$NAME

migrate-status:
$(MIGRATE) status

migrate-up:
$(MIGRATE) up

migrate-down:
$(MIGRATE) down

force:
@read -p "Which version do you want to force?" VERSION; \
$(MIGRATE) force $$VERSION
$(MIGRATE) down

goto:
@read -p "Which version do you want to migrate?" VERSION; \
$(MIGRATE) goto $$VERSION

drop:
$(MIGRATE) drop

create:
@read -p "What is the name of migration?" NAME; \
${MIGRATE} create -ext sql -seq -dir migration $$NAME
redo:
@read -p "Are you sure to reapply the last migration? [y/n]" -n 1 -r; \
if [[ $$REPLY =~ ^[Yy] ]]; \
then \
$(MIGRATE) redo; \
fi

swag-generate:
swag fmt
Expand All @@ -32,6 +38,12 @@ swag-generate:
crud:
bash automate/scripts/crud.sh

create-app:
bash automate/scripts/new_app.sh

inject-auth:
bash automate/scripts/inject_auth.sh

install:
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $$(go env GOPATH)/bin v1.54.2
git config core.hooksPath hooks
Expand All @@ -43,4 +55,4 @@ run:
docker-compose up


.PHONY: migrate-up migrate-down force goto drop create auto-create
.PHONY: create migrate-status migrate-up migrate-down redo
11 changes: 0 additions & 11 deletions api/controllers/controllers.go

This file was deleted.

67 changes: 0 additions & 67 deletions api/controllers/gcp_billing.go

This file was deleted.

170 changes: 0 additions & 170 deletions api/controllers/utility.go

This file was deleted.

8 changes: 0 additions & 8 deletions api/repository/repository.go

This file was deleted.

37 changes: 0 additions & 37 deletions api/routes/docs.go

This file was deleted.

Loading