Desde la línea de comandos, clone el repositorio:
# Clone this repository
git clone https://github.com/rsalgadoc/users-app.git
# Go into the repository
cd users-app/backend-spring-boot-api
# Execute the command
./mvnw spring-boot:run# Execute the command
docker build -t rsalgadoc/backend-users .
# Execute the command
docker run -d -p 8081:8080 --restart always rsalgadoc/backend-userscurl http://localhost:8081/api/users[ec2-user@ip-172-31-13-246 backend-spring-boot-api]$ curl http://localhost:8081/api/users [{"id":1,"name":"Rodrigo","lastname":"Salgado","email":"juan@gmail.com","username":"rsalgado","admin":true,...........
Desde la línea de comandos, clone el repositorio:
# Clone this repository
git clone https://github.com/rsalgadoc/users-app.git
# Go into the repository
cd users-app/frontend-angular-admin
To start a local development server, run:
ng serveOnce the server is running, open your browser and navigate to http://localhost:4200/. The application will automatically reload whenever you modify any of the source files.
# Construimos la imagen con el Dockerfile
docker build -t rsalgadoc/frontend-users .Debido a que el build en AWS se queda pegado, por ser una instancia muy pequeña, subir a DockerHub con el siguiente comando:
# Subimos a Docker Hub
docker push rsalgadoc/frontend-users# Ejecutamos
docker run -d --name frontend-users -p 80:80 --restart always rsalgadoc/frontend-users