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 timoni
Build the Project:
make build
This command will compile the project using the
go build
command and create an executable file namedtimoni
in thebin
directory. Thegithub.com/stefanprodan/timoni
Golang module name influences the output of thego build
command. [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-envtest
Start the environment test:
make envtest
Stop the environment test:
make install-envtest
Generating Documentation
Prepare documentation:
make prep-docs
Generate 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]