- npm 8.5 and higher (probably also lower versions)
⚠ Don't forget to first edit the apiUrl in the environment.prod.ts
& environment.ts
file.
Run ng build
to build the project. The build artifacts will be stored in the dist/
directory.
Run ng serve
for a development server. Navigate to http://localhost:4200/
. The app will automatically reload if you
change any of the source files.
(⚠ Don't forget to start Docker Desktop on Windows)
Use the docker pull alexandrevryghem/guido-desktop:latest
command to get the latest version of the image (or build it
yourself with the command docker build -t guido-desktop .
).
To run the image run the command docker run -d -p PORT:80 alexandrevryghem/guido-desktop:latest
and don't forget to
change the PORT
.
Use the docker pull alexandrevryghem/guido-desktop:latest
command to get the latest version of the image (or build it
yourself with the command docker build -t guido-desktop .
).
To run the docker-compose file run the command docker-compose up -d
and don't forget to change the PORT
inside the docker-compose.yml
file.
This action is automatically triggered when new code is pushed on main
and will update the GitHub page, this doesn't
require any additional setup.
This action is automatically triggered when new code is pushed on main
, this will automatically build a Docker image
and push it to your DockerHub repository. This image can be used to run the project on a production server.
⚠ Don't forget to create the DOCKER_USERNAME
and DOCKER_PASSWORD
secrets in the repository
Settings>Secrets>Actions
. The DOCKER_PASSWORD
can also be an Access Token from DockerHub.
This action is automatically triggered when the Build Docker image
action is completed. Before using it make sure that
you copy the docker-compose.yml on your server and edit it see above.
⚠ This action requires you to also create the HOST
, PORT
, USERNAME
and PRIVATE_KEY
secrets in
Settings>Secrets>Actions
. Otherwise, the GitHub action won't be able to sign in on your server (Make sure your user
has the right permissions to execute the docker
and docker-compose
command). The last secret you need to create is
DOCKER_COMPOSE_PATH
with the location of you docker-compose file on your server (without tailing /
).