chore: rename simple_bank to api_tmpl and clean up for template use

Rename the module, proto service, and all identifiers from simple_bank/
SimpleBank to api_tmpl/ApiTmpl, and regenerate the gRPC/gateway/swagger/
mock code accordingly.

- Scrub real secrets (SMTP password, auth token secret) from api.env/
  api_test.env, untrack them, and add api.env.example/api_test.env.example
- Remove committed build artifacts (tmp/main, tmp/build-errors.log,
  dbml-error.log) and gitignore them going forward
- Fix Dockerfile paths (build target, migrations copy) that referenced a
  stale project layout
- Rewrite README to match the actual cmd/ + internal/ structure and add a
  "using this as a template" section
This commit is contained in:
FernandoJVideira committed 2026-08-25 03:02:37 +01:00
1 parent 961bdd81d4
commit c4ee0ce4dc
71 files changed
+744 -743

No files matched your search

+3 -3
View File
@@ -1,9 +1,9 @@
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/FernandoJVideira/simple_bank/internal/worker (interfaces: TaskDistributor)
// Source: github.com/FernandoJVideira/api_tmpl/internal/worker (interfaces: TaskDistributor)
//
// Generated by this command:
//
// mockgen --package mockwk --destination internal/worker/mock/distributor.go github.com/FernandoJVideira/simple_bank/internal/worker TaskDistributor
// mockgen --package mockwk --destination internal/worker/mock/distributor.go github.com/FernandoJVideira/api_tmpl/internal/worker TaskDistributor
//
// Package mockwk is a generated GoMock package.
@@ -13,7 +13,7 @@ import (
context "context"
reflect "reflect"
worker "github.com/FernandoJVideira/simple_bank/internal/worker"
worker "github.com/FernandoJVideira/api_tmpl/internal/worker"
asynq "github.com/hibiken/asynq"
gomock "go.uber.org/mock/gomock"
)
+3 -3
View File
@@ -3,9 +3,9 @@ package worker
import (
"context"
"github.com/FernandoJVideira/simple_bank/internal/config"
db "github.com/FernandoJVideira/simple_bank/internal/db/sqlc"
"github.com/FernandoJVideira/simple_bank/internal/mailer"
"github.com/FernandoJVideira/api_tmpl/internal/config"
db "github.com/FernandoJVideira/api_tmpl/internal/db/sqlc"
"github.com/FernandoJVideira/api_tmpl/internal/mailer"
"github.com/hibiken/asynq"
"github.com/redis/go-redis/v9"
"github.com/rs/zerolog/log"
+3 -3
View File
@@ -6,9 +6,9 @@ import (
"errors"
"fmt"
db "github.com/FernandoJVideira/simple_bank/internal/db/sqlc"
"github.com/FernandoJVideira/simple_bank/internal/mailer"
"github.com/FernandoJVideira/simple_bank/pkg/testutil"
db "github.com/FernandoJVideira/api_tmpl/internal/db/sqlc"
"github.com/FernandoJVideira/api_tmpl/internal/mailer"
"github.com/FernandoJVideira/api_tmpl/pkg/testutil"
"github.com/hibiken/asynq"
"github.com/rs/zerolog/log"
)