Germán Garcés - 757024
This file aims to give necessary information to configure Github actions to build automatically the project on a push
action and to deploy both server and client.
Steps followed can be found here.
It is not necessary to create a .github/workflows
directory since it is already created in the forked repository.
You just need to create a new branch from the bottom of the page.
Use
work
as asked in the lab.
Committing the workflow file to a branch in your repository triggers the push event and runs your workflow.
- On GitHub, navigate to the main page of the repository.
- Under your repository name, click Actions.
- In the left sidebar, click the workflow
CI
. - From the list of workflow runs, click the name of the run you want to see.
Warning: The client will not run if the server is not deployed so the first step will always be to deploy the server.
There is a TODO
in file lab2-rpc-over-http/blob/work/server/src/main/kotlin/translator/Server.kt
It has to be changed to:
TranslationResponse().apply {
translation = "Traduceme!"
}
- Build the server:
./gradlew :server:build
- Start the server:
./gradlew :server:bootRun
The server is now exposed on port 8080
.
- Build the client
./gradlew :client:build
- Start the client
./gradlew :client:bootRun