Skip to content

zenmate/pingster-ui

Repository files navigation

Pingster UI

Never let your APIs down! Pingster is the tool that allows you test any API requests that are used inside your apps and projects. The Pingster UI offers you an easy to use user interface for your running pingster server.

pingster ui

Usage

Make sure you have a instance of pingster server running. Clone this repository and install all required dependencies, run the app locally and check if everything works:

git clone [email protected]:zenmate/pingster-ui.git
cd pingster-ui
npm i
REACT_APP_PINGSTER_API='https://your-pinster-server.example.com' npm run start

Configuration

Please make sure you define the environmental variable REACT_APP_PINGSTER_API with your pingster-server URL. You can also adjust the configuration withing the config folder.

Deployment

npm run build creates a build directory with a production build of pingster-ui:

REACT_APP_PINGSTER_API='https://your-pinster-server.example.com' npm run build

For environments using Node, the easiest way to handle the deployment would be to install serve and let it handle the rest:

npm install -g serve
serve -s build

You can also serve the build folder from any other instance (like s3 or nginx).

Development

The app is based on the create-react-app package:

REACT_APP_PINGSTER_API='https://your-pinster-server.example.com' npm start