File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed
Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change @@ -208,6 +208,42 @@ X-Powered-By: eexit-engine
208208Date: some date
209209```
210210
211+ ## Development
212+
213+ You can either use Docker to run the server locally or emulate the function using Firebase CLI:
214+
215+ In one terminal, run this command:
216+
217+ ```
218+ firebase emulators:start
219+ ```
220+
221+ In another terminal, test it:
222+
223+ ```
224+ http http://localhost:5001/mirror-http-server/us-central1/mirror X-Mirror-Body:true message="Hello world\!"
225+ HTTP/1.1 200 OK
226+ connection: keep-alive
227+ content-length: 26
228+ content-type: application/json; charset=utf-8
229+ date: Sun, 06 Nov 2022 10:56:21 GMT
230+ etag: W/"1a-T7vCLEZV7pLSyUzkr9XBdG32YU8"
231+ keep-alive: timeout=5
232+ x-powered-by: Express
233+
234+ {
235+ "message": "Hello world!"
236+ }
237+ ```
238+
239+ ## Deployment
240+
241+ This service is host as [ Google Clound Platform Cloud Function] ( https://firebase.google.com/docs/functions ) .
242+
243+ ```
244+ firebase deploy --only functions
245+ ```
246+
211247## Todo
212248
213249- Functional testing
You can’t perform that action at this time.
0 commit comments