Giải trí cùng game của tyttoot > Diễn đàn > Tạo server function bằng firebase

Tạo server function bằng firebase

*Step 1: install node.js brew install node npm install -g firebase-tools *Step 2: create folder for firebase function project mkdir /Users/tyttoot/Sites/workspace/project/firebasedemo cd /Users/tyttoot/Sites/workspace/project/firebasedemo firebase login * login to firebase by * allow selection firebase init *Select Function *Select project (create on firebase web - ls -la cd functions ls -la cat package.json ls node modules nano .gitignore * write: node_modules/ and save it * go functions/index.js en uncommand code Hello from Firebase! firebase deploy * get Function URL (end deploy process) and show on browser