Skip to content

Commit 10e1e12

Browse files
committed
Update README
1 parent 38dfda8 commit 10e1e12

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

README.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,42 @@ X-Powered-By: eexit-engine
208208
Date: 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

0 commit comments

Comments
 (0)