Minimal Spring Boot API Restful for farmaciaturno.
For building and running the application you need:
There are several ways to run a Spring Boot application on your local machine. One way is to execute the main
method in the cl.genesiscastillo.farmaciaTurno.FarmaciaTurnoApplication
class from your IDE.
Alternatively you can use the Spring Boot Maven plugin like so:
mvn spring-boot:run
docker build -t genesiscastillo/farmaciaturno .
docker push genesiscastillo/farmaciaturno
docker pull genesiscastillo/farmaciaturno
docker run -it -p 8080:8080 genesiscastillo/farmaciaturno
docker tag genesiscastillo/farmaciaturno gcr.io/sing-in-dev-284714/farmaciaturno
docker push gcr.io/sing-in-dev-284714/farmaciaturno
gcloud container clusters get-credentials cluster-1 --zone us-central1-c --project sing-in-dev-284714
kubectl create deployment farmaciaturno --image=gcr.io/sing-in-dev-284714/farmaciaturno --dry-run=client -o=yaml > farmaciaturno-deployment.yaml
kubectl create service loadbalancer farmaciaturno --tcp=8080:8080 --dry-run=client -o=yaml > farmaciaturno-service.yaml
kubectl apply -f farmaciaturno-configmap.yaml
kubectl apply -f farmaciaturno-deployment.yaml
kubectl apply -f farmaciaturno-service.yaml
If you want to access to API Rest from outside.
POST: http://34.72.30.120:8080/api/farmacia/postListaFarmaciaEnTurno
{
"comuna": "BUIN",
"local": "AHUMADA"
}
Cesar Castillo genesiscastillo@hotmail.com