Skip to content

kuddelmuddelall/nodejs-api

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Currency Exchange API – NodeJS

docker run -d -p 8080:8080 u1ih/nodejs-api

curl -i http://localhost:8080/fx

CI/CD pipeline implemented using GitHub Actions:

  • create docker container
  • push to gcr.io container registry
  • deploy to Google Cloud Run (knative / PaaS)

Live endpoint available at: https://nodejsapi-tgihgzgplq-uc.a.run.app/

https://nodejsapi-tgihgzgplq-uc.a.run.app/fx

The CI/CD build workflow needs documentation. For now, here is how you connect it to GCP: https://gcp-examquestions.com/ci-cd-solutions-deploy-to-google-cloud-run-using-github-actions/

In order for this to be provisioned on your Google Cloud instance, you need to make sure you create/update these GitHub secrets:

  • GCP_APPLICATION
  • GCP_CREDENTIALS
  • GCP_EMAIL
  • GCP_PROJECT

You'll also need to activate a couple of APIs in Google Cloud, the first deployment will probably fail and point you into the right direction. Alternatively, you could deploy the first version manually.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 65.3%
  • Dockerfile 27.6%
  • Shell 7.1%