Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. import * as functions from 'firebase-functions';
  2. import * as admin from 'firebase-admin';
  3. admin.initializeApp(functions.config().firebase);
  4.  
  5. export const addFxTransactionToFirestore = functions.https.onRequest(
  6. (req: any, res: any) => {
  7. console.log(req);
  8. res.send(req);
  9. }
  10. );
  11.  
  12. {
  13. "name": "functions",
  14. "scripts": {
  15. "lint": "tslint --project tsconfig.json",
  16. "build": "tsc",
  17. "serve": "npm run build && firebase serve --only functions",
  18. "shell": "npm run build && firebase functions:shell",
  19. "start": "npm run shell",
  20. "deploy": "firebase deploy --only functions",
  21. "logs": "firebase functions:log"
  22. },
  23. "engines": {
  24. "node": "10"
  25. },
  26. "main": "lib/index.js",
  27. "dependencies": {
  28. "firebase-admin": "^8.1.0",
  29. "firebase-functions": "^3.0.1"
  30. },
  31. "devDependencies": {
  32. "tslint": "^5.12.0",
  33. "typescript": "^3.2.2"
  34. },
  35. "private": true
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement