일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- 앱리소스
- FIDO2
- albumbook
- 애플
- 앨범북
- MSYS2
- css
- kmip
- 인증
- WebAuthn
- SWIFT
- git
- apple
- openssl
- appres
- otpkey
- Xcode
- Nodejs
- SwiftUI
- 안드로이드
- OTP
- SSH
- 앱스토어
- SSL
- OSX
- fido
- 2FA
- MFA
- MYSQL
- Android
Archives
- Today
- Total
인디노트
Firebase 에 NodeJS 초기화 본문
초기 프로젝트 만드는 순서
ng new okey-kr
cd okey-kr
firebase init
참조 사이트
https://teraphonia.tistory.com/760
https://poiemaweb.com/angular-firebase
index.js
const functions = require('firebase-functions');
const express = require('express');
const app = express();
app.get('/timestamp', (req, res) => {
res.send(`${Date.now()}`);
});
exports.app = functions.https.onRequest(app);
firebase.json
{
"hosting": {
"public": "dist",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"rewrites": [{
"source": "**",
"function": "app"
}],
"cleanUrls": true
},
"database": {
"rules": "database.rules.json"
}
}
반응형
'개발 플랫폼 및 언어 > 파이어베이스 Firebase' 카테고리의 다른 글
Angular - Firebase Firestore 데이터 바인딩 (1) | 2020.12.15 |
---|---|
Firebase 의 다양한 샘플코드를 원한다면 fireship.io 를 참고하자. (0) | 2020.11.02 |
Comments