Skip to content

genesiscastillo/farmaciaTurno

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

API Rest farmaciaturno

Build Status Coverage Status License

Minimal Spring Boot API Restful for farmaciaturno.

Requirements

For building and running the application you need:

Running the application locally

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

Deploying the application to GKE

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"
}

Copyright

Cesar Castillo genesiscastillo@hotmail.com

About

farmaciaTurno backen powered with springboot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published