This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// om namah shivaya | |
exports.helloWorld = (req, res) => { | |
res.send('Hello, World!'); | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "functions-framework-demo", | |
"version": "1.0.0", | |
"description": "", | |
"main": "index.js", | |
"scripts": { | |
"start": "functions-framework --target=helloWorld" | |
}, | |
"keywords": [], | |
"author": "Raj Chaudhary", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// om namah shivaya | |
const { ApolloServer, gql } = require('apollo-server-cloud-functions'); | |
// dummy data | |
const countries = [ | |
{ | |
code: 'IN', | |
name: 'India', | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "apollo-server-3-gcf", | |
"version": "1.0.0", | |
"description": "", | |
"main": "index.js", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1" | |
}, | |
"keywords": [], | |
"author": "Raj Chaudhary", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# om namah shivaya | |
# directories | |
node_modules | |
# files | |
.dockerignore | |
.gitignore | |
.prettierrc | |
Dockerfile |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# om namah shivaya | |
# Use the official lightweight Node.js 14 image. | |
# https://hub.docker.com/_/node | |
FROM node:14-slim | |
# Create and change to the app directory. | |
WORKDIR /usr/src/app | |
# Copy application dependency manifests to the container image. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// om namah shivaya | |
const { ApolloServer, gql } = require('apollo-server-express'); | |
const express = require('express'); | |
// dummy data | |
const countries = [ | |
{ | |
code: 'IN', | |
name: 'India', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "apollo-server-3-express-gcr", | |
"version": "1.0.0", | |
"description": "", | |
"main": "index.js", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1" | |
}, | |
"keywords": [], | |
"author": "Raj Chaudhary", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# om namah shivaya | |
service: default | |
runtime: nodejs14 | |
instance_class: F1 | |
automatic_scaling: | |
min_instances: 0 | |
max_instances: 1 | |
target_cpu_utilization: 0.90 | |
handlers: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// om namah shivaya | |
const { ApolloServer, gql } = require('apollo-server-express'); | |
const express = require('express'); | |
// dummy data | |
const countries = [ | |
{ | |
code: 'IN', | |
name: 'India', |