CorrelateApp Backend
π Getting Started
To set up and run the CorrelateApp Backend locally, follow these steps:
- Clone the repository
git clone https://github.com/dim2k2006/correlateapp-be.git
cd correlateapp-be
- Install the dependencies
go mod download
- Install golangci-lint
go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
- Install goimports
go install golang.org/x/tools/cmd/goimports@latest
- Run the Application:
go run ./cmd/api/main.go
Managing dependencies
To add a new dependency, run:
go get <package-name>
Note: Direct dependencies are those you explicitly import in your code. Indirect dependencies are required by your direct dependencies.
Removing Dependencies
To remove a dependency, you can use the go mod tidy command. This command will remove any dependencies that are no longer required by your code.
go mod tidy
Tidying Up
Regularly running go mod tidy ensures that your go.mod and go.sum files are clean and free of unnecessary dependencies.
go mod tidy
Benefits:
- Removes unused dependencies.
- Adds missing dependencies required by your imports.
- Ensures go.mod and go.sum are in sync with your codebase.
πππ