Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
eexit committed Nov 6, 2022
1 parent 38dfda8 commit 10e1e12
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,42 @@ X-Powered-By: eexit-engine
Date: some date
```

## Development

You can either use Docker to run the server locally or emulate the function using Firebase CLI:

In one terminal, run this command:

```
firebase emulators:start
```

In another terminal, test it:

```
http http://localhost:5001/mirror-http-server/us-central1/mirror X-Mirror-Body:true message="Hello world\!"
HTTP/1.1 200 OK
connection: keep-alive
content-length: 26
content-type: application/json; charset=utf-8
date: Sun, 06 Nov 2022 10:56:21 GMT
etag: W/"1a-T7vCLEZV7pLSyUzkr9XBdG32YU8"
keep-alive: timeout=5
x-powered-by: Express
{
"message": "Hello world!"
}
```

## Deployment

This service is host as [Google Clound Platform Cloud Function](https://firebase.google.com/docs/functions).

```
firebase deploy --only functions
```

## Todo

- Functional testing

0 comments on commit 10e1e12

Please sign in to comment.