Refactor backend to Gin version#4
Merged
Merged
Conversation
NaoCoding
requested changes
Nov 3, 2025
NaoCoding
requested changes
Nov 4, 2025
Member
Author
|
Now have prd/test/dev mode can select in APP_ENV in .env, only test mode will open test api. |
NaoCoding
reviewed
Nov 19, 2025
Contributor
NaoCoding
left a comment
There was a problem hiding this comment.
Try to resolve the conversation once you completed the changes.
So I can easily know the status of your PRs.
NaoCoding
approved these changes
Nov 20, 2025
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This pull request migrates the project from a Node.js/TypeScript/Express backend to a Go backend using the Gin framework. It removes all Node.js/TypeScript-specific configuration, code, and tooling, replacing them with Go equivalents for dependency management, code quality, CI/CD, and documentation. The README and workflow files are rewritten to reflect the new Go-based stack and development practices.
Migration to Go backend:
package.json,eslint.config.js, and the main application code insrc/app.ts. [1] [2] [3]go.mod, specifying dependencies for Gin, Firebase, and supporting libraries.CI/CD and workflow changes:
ci.ymlandtest.yml) are updated to use Go instead of Node.js, including dependency caching, formatting, vetting, and building/testing with Go tools. Node.js and pnpm steps are removed. [1] [2]Code quality and pre-commit hooks:
lint-stagedconfiguration is updated to format only Go files.Environment and Firebase setup:
.env.exampleis simplified for Go, and a newfirebase.jsonis added for Firestore emulator configuration. [1] [2]Summary of most important changes:
1. Migration to Go backend
package.json,eslint.config.js, andsrc/app.ts. [1] [2] [3]go.mod) with dependencies for Gin, Firebase, and related libraries.README.mdto document Go stack, project structure, and development workflow. [1] [2] [3]2. CI/CD and workflow updates
3. Code quality and pre-commit
go fmt,go vet,go mod tidy).lint-stagedto format Go files only.4. Environment and Firebase configuration
.env.examplefor Go and addedfirebase.jsonfor Firestore emulator. [1] [2]