Building and Starting the Timoni Project
This guide will walk you through the steps required to build and start the Timoni project.
Prerequisites
- Go: Ensure you have Go installed and configured.
- Docker: Docker is required for building the project and running the environment test.
- Make: Make is used to automate the build process.
Building the Project
Clone the Repository:
git clone https://github.com/stefanprodan/timoni.git cd timoniBuild the Project:
make buildThis command will compile the project using the
go buildcommand and create an executable file namedtimoniin thebindirectory. Thegithub.com/stefanprodan/timoniGolang module name influences the output of thego buildcommand. [Source: Makefile]
Starting the Project
The timoni executable can be run directly from the bin directory:
./bin/timoni
Running the Environment Test
The project includes an environment test that allows you to test Timoni in a controlled environment.
Setup the environment test:
make setup-envtestStart the environment test:
make envtestStop the environment test:
make install-envtest
Generating Documentation
Prepare documentation:
make prep-docsGenerate documentation:
make docs
Other Useful Commands
- Run Tests:
make test - Format Code:
make fmt - Run Static Code Analysis:
make vet - Install Dependencies:
make install - Push Redis image:
make push-redis - Clean Up:
make tidy - Generate Code:
make generate
Docker
The Dockerfile for the project exposes port null in production. [Source: Dockerfile]