To start off, copy the sample.env file:
cd api
cp sample.env .envAnd update the values based on your current setup.
To run the application locally, use the following command:
cd api
go run ./delivery/main.goTo build the project, use the following command:
go build -o ./path/filename ./deliveryThe build can then be executed using:
./path/filename In the api/ directory, config for fresh can be found. This package allows the application to re-build and re-launch whenever changes to the tracked files are made. To use fresh, download the package on your local machine and execute the fresh command in the root of the project.
go install github.com/zzwx/fresh@latestIn the root of the project:
fresh