Cloud Resume API Challenge Submission #8
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request contains my submission for the Cloud Resume API Challenge. I have implemented a serverless API using Google Cloud Functions and Firestore to serve my resume data in JSON format.
Implementation Details:
Created a Google Cloud Function named resume-api using Node.js 16 runtime.
The Cloud Function fetches resume data stored in a Firestore collection named resume-database.
Integrated GitHub Actions workflow to automatically deploy the Cloud Function whenever changes are pushed to the repository.
Used the google-github-actions/deploy-cloud-functions action to package and deploy the Cloud Function.
Additional Features and Functionalities:
Implemented error handling and appropriate HTTP status codes in the Cloud Function.
Included a package.json file to manage dependencies (@google-cloud/functions-framework and @google-cloud/firestore).
Updated the README.md file with detailed instructions on how to set up the project, deploy the Cloud Function, and test the API.
Testing and Deployment:
The Cloud Function deployment is triggered automatically via the GitHub Actions workflow whenever changes are pushed to the main branch.
The deployed Cloud Function API can be tested by sending a GET request to the following URL : https://us-central1-cloud-resume-api-423120.cloudfunctions.net/function-1
B