Giter Site home page Giter Site logo

andrecanuto1983 / brazil-api-integration-front Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 936 KB

Simple SPA page to search by cnpj and search for books, integrating with the service brazil-api-integration

JavaScript 16.28% HTML 2.54% Vue 80.07% Dockerfile 1.11%

brazil-api-integration-front's Introduction

brazil-api-integration-front

Simple front-end for cnpj search and book search, will call the pos.puc.tcc.api service

Project setup

npm install

Compiles and hot-reloads for development

npm run dev

Compiles and minifies for production

npm run build

Generate application image locally

docker build -f Dockerfile -t pos.puc.tcc.front .

Run application container locally

docker container run -d -p 3000:8080 --name pos.puc.tcc.front pos.puc.tcc.front

Push front-end image to docker hub

docker login
docker tag pos.puc.tcc.front your_account/pos.puc.tcc.front
docker push your_account/pos.puc.tcc.front

Deploy in kubernetes

kubectl create -f front-deploy.yaml

Adjust auto scalling

kubectl autoscale deployment pos-puc-tcc-front --min=1 --max=10 --cpu-percent=50

General commands kubernetes

kubectl get all
kubectl get deployments
kubectl get svc
kubectl get pods
kubectl get services
kubectl get deploy
kubectl get nodes		
kubectl delete services --all
kubectl delete pod pos-puc-tcc-front
kubectl delete node name-node
kubectl describe deploy pos-puc-tcc-front
kubectl describe svc pos-puc-tcc-front

Data For Test

Books:

  • 9788545702870 Akira vol. 1
  • 9788535919714 Steve Jobs
  • 9788562936524 A guerra dos tronos
  • 9788599296363 A cabana
  • 9788525432186 Sapiens
  • 9788539004119 O poder do hábito
  • 9788551002490 A Sutil Arte de Ligar o F*da-se
  • 9786584661097 365 Dias de Inteligência
  • 9786559223503 Autismo
  • 9788576849940 O milagre da manhã
  • 9788502218482 Ansiedade
  • 9788543104508 Propósito
  • 9788545202219 O poder da autorresponsabilidade
  • 9788562409882 A garota do lago

Companies:

  • 17178195002968 puc minas
  • 06990590000123 google
  • 04712500000107 microsoft
  • 13590585000199 netflix
  • 57286247000133 intel
  • 15436940000103 amazon

brazil-api-integration-front's People

Contributors

andrecanuto83 avatar andrecanuto1983 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.