https://github.com/morishin/rewriteproxy
https://github.com/morishin/rewriteproxy
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/morishin/rewriteproxy
- Owner: morishin
- Created: 2020-12-03T15:47:05.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2020-12-04T02:10:08.000Z (over 4 years ago)
- Last Synced: 2025-02-06T02:19:52.005Z (5 months ago)
- Language: Go
- Size: 5.86 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# rewriteproxy
Emulator of Firebase Hosting [_rewrites_](https://firebase.google.com/docs/hosting/full-config#rewrites) for your development environment.
## Features
### Rewrite path

### Cloud Functions
It emulates this: https://firebase.google.com/docs/hosting/full-config#rewrite-functions

### `cleanUrls: true`
It emulates this: https://firebase.google.com/docs/hosting/full-config#rewrites


### Root path

## Installation
```sh
$ go get github.com/morishin/rewriteproxy
```or you can use standalone binary: https://github.com/morishin/rewriteproxy/releases/latest
## Usage
```sh
$ rewriteproxy \
--port=3000 \
--firebase-json=/path/to/firebase.json \
--web-app-url=http://localhost:1234 \
--cloud-function-base-url=http://localhost:5001/your-project-id/us-central1
```## Development
### Run
```sh
$ go run . \
--port=3000 \
--firebase-json=firebase.json.example \
--web-app-url=http://localhost:1234 \
--cloud-function-base-url=http://localhost:5001/your-project-id/us-central1
```