This file contains 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
https://gist.github.com/staltz/868e7e9bc2a7b8c1f754 | |
http://reactivex.io/tutorials.html | |
https://github.com/ReactiveX/RxSwift/blob/master/Documentation/GettingStarted.md |
This file contains 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
{ | |
... | |
"scripts": { | |
"start": "tsc && node ./dist/index.js", | |
"dev": "ts-node-dev --no-notify --respawn --transpileOnly src/index" | |
}, | |
"dependencies": {}, | |
"devDependencies": { | |
"@types/node": "^13.13.4", | |
"ts-node-dev": "^1.0.0-pre.44", |
This file contains 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
Show hidden characters
{ | |
"compilerOptions": { | |
"target": "es6", | |
"module": "commonjs", | |
"strict": true, | |
"outDir": "./dist", | |
"sourceMap": true, | |
"esModuleInterop": true, | |
"resolveJsonModule": true | |
}, |
This file contains 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
{ | |
"defaultSeverity": "error", | |
"extends": "tslint-config-airbnb", | |
"jsRules": {}, | |
"rules": { | |
"eofline": false | |
}, | |
"rulesDirectory": [] | |
} |
This file contains 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
{ | |
"compilerOptions": { | |
"target": "es6", | |
"module": "commonjs", | |
"strict": true, | |
"outDir": "./dist", | |
"sourceMap": true, | |
"esModuleInterop": true, | |
"resolveJsonModule": true | |
}, |
This file contains 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
{ | |
... | |
"scripts": { | |
"start": "tsc && node ./dist/index.js", | |
"dev": "ts-node-dev --no-notify --respawn --transpileOnly src/index" | |
}, | |
"dependencies": {}, | |
"devDependencies": { | |
"@types/node": "^13.13.4", | |
"ts-node-dev": "^1.0.0-pre.44", |
This file contains 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
# see https://cloud.google.com/appengine/docs/flexible/nodejs/configuring-your-app-with-app-yaml for more info | |
runtime: nodejs | |
env: flex |
This file contains 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
import express from 'express' | |
import { ApolloServer, gql } from 'apollo-server-express' | |
// Some fake data (to be removed in later section) | |
const books = [ | |
{ | |
title: "Harry Potter and the Sorcerer's stone", | |
author: 'J.K. Rowling', | |
}, | |
{ |
This file contains 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
import admin from 'firebase-admin' | |
// Learn how to get your serviceAccountKey from https://firebase.google.com/docs/firestore/quickstart | |
let serviceAccountKey = require('../serviceAccountKey.json') | |
admin.initializeApp({ | |
credential: admin.credential.cert(serviceAccountKey), | |
}) | |
const db = admin.firestore(); |
OlderNewer