Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import * as functions from 'firebase-functions';
- import * as admin from 'firebase-admin';
- admin.initializeApp(functions.config().firebase);
- export const addFxTransactionToFirestore = functions.https.onRequest(
- (req: any, res: any) => {
- console.log(req);
- res.send(req);
- }
- );
- {
- "name": "functions",
- "scripts": {
- "lint": "tslint --project tsconfig.json",
- "build": "tsc",
- "serve": "npm run build && firebase serve --only functions",
- "shell": "npm run build && firebase functions:shell",
- "start": "npm run shell",
- "deploy": "firebase deploy --only functions",
- "logs": "firebase functions:log"
- },
- "engines": {
- "node": "10"
- },
- "main": "lib/index.js",
- "dependencies": {
- "firebase-admin": "^8.1.0",
- "firebase-functions": "^3.0.1"
- },
- "devDependencies": {
- "tslint": "^5.12.0",
- "typescript": "^3.2.2"
- },
- "private": true
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement