Annon Dashboard is a management UI for Annon API Gateway. It allows to manage configuration and review requests history.
- nebo15/annon_api >= 0.2.94
Dashboard can be deployed as a single container from nebo15/annon.web Docker Hub.
More information you can find in Annon Infrastructure.
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). |
Dashboard works on top of Annon API Gateway management API.
- React
- Redux
- Webpack
- Enzyme
- Karma
- Nightwatch
npm run dev ## run app localy
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
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.
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)
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.
See LICENSE.md.