Giter Site home page Giter Site logo

muthah / janus-dashboard Goto Github PK

View Code? Open in Web Editor NEW

This project forked from motiv-labs/janus-dashboard

0.0 1.0 0.0 2.43 MB

Admin panel for Janus, an API Gateway

License: MIT License

JavaScript 89.06% HTML 0.44% CSS 9.98% Makefile 0.32% Dockerfile 0.21%

janus-dashboard's Introduction

Build Status

Janus-Dashboard

Janus Dashboard is a web-based UI for Janus. It allows users to easily configure the API Gateway without having to send HTTP calls manually.

Dashboard API Definitions Page

Getting Started

A quick way to start the dashboard is to run the docker image. Execute the following command to start the dashboard using the latest Docker image:

docker run -d \
-p 8082:80 \
--name janus-dashboard \
quay.io/hellofresh/janus-dashboard

You can then visit http://localhost:8082 and start using the dashboard.

Advanced Configuration

Janus Dashboard supports authentication with GitHub OAuth. A guide on how to configure GitHub OAuth can be read here. An example command can be seen below:

docker run -d \
-p 8082:80 \
-e REACT_APP_JANUS_URI=http://localhost:8081 \
-e REACT_APP_DISABLE_BASIC_AUTH=true \
-e REACT_APP_GITHUB_AUTHORIZE_URL=http://localhost:8080/auth/github/authorize \
-e REACT_APP_GITHUB_CLIENT_ID=exampleClientId \
-e REACT_APP_GITHUB_SCOPE=read:org \
-e REACT_APP_GITHUB_TOKEN_URL=http://localhost:8080/auth/github/token \
--name janus-dashboard \
quay.io/hellofresh/janus-dashboard

Supported environment variables:

  • REACT_APP_DISABLE_BASIC_AUTH removes the user interface for basic authentication if set to true
  • REACT_APP_DISABLE_GITHUB_AUTH removes the user interface of GitHub authentication if set to true
  • The following environment variables are required for GitHub authentication
    • REACT_APP_GITHUB_AUTHORIZE_URL
    • REACT_APP_GITHUB_CLIENT_ID
    • REACT_APP_GITHUB_TOKEN_URL
    • REACT_APP_GITHUB_SCOPE

Development

With Docker

The following command will start Janus Dashboard server and the latest version of Janus with the default username admin and password admin:

$ docker-compose -f tests/docker-compose.test.yml up -d

Without Docker

The following command will start only Janus Dashboard:

$ npm install
$ npm run start

This method will load public/config.js as the configuration. A sample of this file can be found in /src/config.js.tmpl.

janus-dashboard's People

Contributors

ivanzusko avatar s4nji avatar kieranajp avatar italolelis avatar carlosyslas avatar marcomedina avatar vgarvardt avatar vxplus avatar rafaeljesus avatar dependabot[bot] avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.