Skip to content

Annon API Gateway Dashboard - manage API Gateway settings, review and replay requests from history.

License

Notifications You must be signed in to change notification settings

Nebo15/annon.web

Repository files navigation

Annon Dashboard

Build history

Annon Dashboard is a management UI for Annon API Gateway. It allows to manage configuration and review requests history.

Demo

UI Screenshow

Dependencies

Installation

Heroku One-Click Deployment

Deploy

Docker

Deployment

Dashboard can be deployed as a single container from nebo15/annon.web Docker Hub.

More information you can find in Annon Infrastructure.

Configurations

Application supports these environment variables:

Environment Variable Default Value Description
PORT 8080 Node.js server port.
MANAGEMENT_ENDPOINT http://localhost:4001 Annon API Gateway management API endpoint.
PUBLIC_ENDPOINT http://localhost:4000 Annon API Gateway public API endpoint.
TRACER_URL not set URL will be used in link to external requests tracer (see #42).

Docs

Dashboard works on top of Annon API Gateway management API.

Contribution

Technologies

  • React
  • Redux
  • Webpack
  • Enzyme
  • Karma
  • Nightwatch

Starting Development Environment

Start Dashboard

npm run dev ## run app localy

Start Annon Gateway (API)

docker-compose up

At the first time, API will not start because a Postgres need time to create database and etc. The official Postgres docker container is sending start signal before the full end of the starting process.

So, after failure of first time up process, exec docker-compose up one more time.

After docker-compose down you need to repeat docker-compose up twice too.

API is running at:

http://localhost:4000 - public api
http://localhost:4001 - management api

Workflow

Git flow

Every task should start a new branch. Branch should be named as task number what its corresponding. After finish work on a task, you need to create PR.

Testing

To contribute to the repository be ready to write some tests.

  • Unit tests for business logic (we use Mocha)
  • Integration tests for UI components (we use Enzyme)
  • Acceptance tests for user stories (we use Nightwatch)

Pull Requests

Every task finishes with PR. Eslint, Stylelint, and tests are blocking PRs. To simplify PR review, we deploy every PR's branch automatically on Heroku.

License

See LICENSE.md.