1.3 KiB
1.3 KiB
Project wretched-machines-backend
One Paragraph of project description goes here
Getting Started
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
MakeFile
run all make commands with clean tests
make all build
build the application
make build
run the application
make run
Create DB container
make docker-run
Shutdown DB container
make docker-down
live reload the application
make watch
run the test suite
make test
clean up binary from the last build
make clean
Using make on Windows
- Make sure you have MinGW installed.
- Open your terminal in administrator.
- Make sure you are in command prompt with
cmd.(not powershell) - Run the following command. (replace C:\bin\make.exe with your own path in your PATH env variable)
mklink C:\bin\make.exe C:\MinGW\bin\mingw32-make.exe
- Close all terminal sessions and open a new terminal. Test that it works with
make.
Using Air for live reload
- Install air with
go install github.com/air-verse/air@latest. - Then run with
air -c .air.toml, or if you have make installed thenmake watch.