Hercules Exercise Service is a gRPC-based service that allows you to create and manage workout exercises. This service is part of the Hercules system and handles exercise-related operations such as creation and retrieval of exercises.
- Create Exercise: Allows users to create a new exercise by specifying its name.
- Get Exercise (future implementation): Retrieve an exercise by its ID.
Creates a new exercise and returns a confirmation message.
- RPC:
CreateExercise(CreateExerciseRequest) returns (ExerciseCreatedResponse)
- Request:
message CreateExerciseRequest { string name = 1; // Name of the exercise }
- Response:
message ExerciseCreatedResponse { string message = 1; // Confirmation message }
Retrieve details of an exercise by its ID.
- /cmd: Contains the main entry point for running the service.
- /internal: Core business logic, including exercise service and gRPC server implementation.
- /api: Protocol Buffers definition files for gRPC.
-
Clone the repository:
git clone https://github.com/yourrepo/hercules-exercise-service.git
-
Compile protobufs:
make generate
-
Run the service:
make run
The service will start on port 8080
by default.
This project is licensed under the GNU GPLv3 License.