2019-10-30 00:14:20 +00:00
< div align = "center" >
< a href = "https://postwoman.io" > < img src = "https://postwoman.io/icons/logo.svg" alt = "Postwoman" height = "128" > < / a >
< br >
< h1 > Postwoman Proxy< / h1 >
< p >
API request builder - Helps you create your requests faster, saving you precious time on your development.
< / p >
< / div >
---
2020-02-29 21:31:34 +00:00
A simple proxy server created by [@NBTX ](https://github.com/NBTX/ ) for [Postwoman ](https://github.com/liyasthomas/postwoman/ ) and hosted by [Apollo Software ](https://apollosoftware.xyz/ ).
2019-10-30 00:14:20 +00:00
## Demo 🚀
[https://postwoman.io ](https://postwoman.io )
2019-12-19 13:28:20 +00:00
## Building 🏗️
*These are bash scripts. In order to execute them on Windows, you will need to use some form of bash shell on Windows. We recommend [Git Bash ](https://gitforwindows.org/ ).*
- macOS:
2019-12-07 19:25:39 +00:00
```bash
2019-12-19 13:28:20 +00:00
# To build the desktop tray application:
2019-12-07 23:24:21 +00:00
$ ./build.sh darwin
2019-12-19 13:28:20 +00:00
# To build the server application:
$ ./build.sh darwin server
2019-12-07 23:24:21 +00:00
```
2019-12-07 23:53:44 +00:00
- For Linux desktops:
2019-12-07 23:24:21 +00:00
```bash
2019-12-19 13:28:20 +00:00
# To build the desktop tray application:
2019-12-07 23:24:21 +00:00
$ ./build.sh linux
2019-12-19 13:28:20 +00:00
# To build the server application:
$ ./build.sh linux server
2019-12-07 19:25:39 +00:00
```
2019-10-30 00:14:20 +00:00
2019-12-07 23:53:44 +00:00
- For Windows desktops:
2019-12-07 19:25:39 +00:00
```bash
2019-12-19 13:28:20 +00:00
# To build the desktop tray application:
2019-12-07 23:24:21 +00:00
$ ./build.sh windows
2019-12-07 23:53:44 +00:00
2019-12-19 13:28:20 +00:00
# To build the server application:
$ ./build.sh windows server
2019-12-07 23:53:44 +00:00
```
2019-12-18 20:49:28 +00:00
2019-12-19 13:28:20 +00:00
> The build output is placed in the `out/` directory.
## Installers 🧙
2019-12-18 20:49:28 +00:00
The `installers/` directory contains scripts for each platform to generate an installer application.
Each platform's installer directory, contains the relevant information for that installer.
- [macOS ](installers/darwin )
- [Windows ](installers/windows )
- [Linux ](installers/linux )
2019-12-07 23:53:44 +00:00
2019-12-19 13:28:20 +00:00
## Usage 👨💻
### Desktops 🖥️
2019-12-18 20:49:28 +00:00
The proxy will add a tray icon to the native system tray for your platform, which will contain all of the options for the proxy.
2019-12-19 13:28:20 +00:00
### Servers 🖧
2020-06-07 16:06:17 +00:00
To use the proxy on a server, clone the package, build the server using the instructions above, and use:
2019-12-07 23:53:44 +00:00
```bash
2020-06-07 16:06:17 +00:00
$ ./out/< platform > -server/server --host="< hostname > :< port > " --token="< token_or_blank > "
# e.g. on Linux
$ ./out/linux-server/server --host="< hostname > :< port > " --token="< token_or_blank > "
# or on Windows
$ ./out/windows-server/server.exe --host="< hostname > :< port > " --token="< token_or_blank > "
2019-12-07 23:53:44 +00:00
```
- The `host` and `token` parameters are optional. The defaults are as follows:
- `host` : `localhost:9159`
- `token` : blank; allowing anyone to access (see below)
2020-06-07 16:06:17 +00:00
**NOTE:** When the token is blank it will allow *anybody* to access your proxy server. This may be what you want, but please be sure to consider the security implications.