GithubHelp home page GithubHelp logo

classicvalues / intuit-spring-cloud-config-inspector Goto Github PK

View Code? Open in Web Editor NEW

This project forked from intuit/intuit-spring-cloud-config-inspector

1.0 1.0 0.0 4.73 MB

Inspection of Spring Cloud Config properties made easy using React

JavaScript 95.42% CSS 4.09% HTML 0.25% Dockerfile 0.25%

intuit-spring-cloud-config-inspector's Introduction

Intuit Spring Cloud Config Inspector

Inspect config files with config file url or metadata file url. Facilitate understanding how the Spring Cloud Config Server processes configuration files in the backend in order to serve to applications.

Build Status Codacy Badge

  • Config Resolution: Shows the resolution tree of where the current value of all properties came from based on the label and profiles.
  • Raw Configs: Shows the output of the resolved configs in .yml, .properties, .json and the .json of the config server metadata.
  • Diff-Across: Debug which values are different between two combination of label and profiles.
  • Github Info: Shows where the configuration files came from.
  • API Logs: See how to call the Config Server directly using cURL.
  • Static Content: Shows the resolved static content after resolving the tokens. (FUTURE)

For the Config Repo https://github.com/marcellodesales/config-repo, appName foo, the inspection is as follows:

resolution

Go to the Wiki pages for details on the features set.

Running with Docker/Docker-Compose

You can quickly have an idea about the power of the Inspector by quickly running with default config repo setup.

$ docker-compose up

Go to http://localhost:3232 and then specify the following:

You MUST have connectivity to "github.com" in order to run this server.

If you want to point to your own Configuration file, make sure to change the environment variable value in Docker-Compose.

Running with NPM/Node

$ npm install
$ npm start

Run without Tests

  • Clone this repository
  • Run the app
$ npm run dev

Config service Proxy server

  • In order to call the config and github servers from the browser, we have to proxy the calls with CORS.
  • The proxy server will handle the pre-flight calls properly (HTTP OPTIONS)

NOTE: If your Config Server or Github appliances require credentials, you can add them through the UI using the "Headers" section.

$ npm run proxy

> [email protected] proxy /Users/marcellodesales/dev/github/intuit/services-configuration/config-inspector
> node tools/cors-proxy

Using limit:  100kb
CORS Proxy server listening on port 3001

The example below is to verify that calls to the config-server, dockerized version, works propertly.

$ curl -X OPTIONS -i  \
        localhost:3001/http://config-server:8888/v2/foo-development.yml

HTTP/1.1 200 OK
X-Powered-By: Express
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: GET, PUT, PATCH, POST, DELETE
Access-Control-Allow-Headers: origin, content-type, accept, location, code
Date: Sat, 05 Aug 2017 17:25:24 GMT
Connection: keep-alive
Content-Length: 0

Tests

  • Execute the tests
$ npm test

> [email protected] test /Users/marcellodesales/dev/github/intuit/services-configuration/config-inspector
> jest

 PASS  app/components/TopMenu.test.js
 PASS  app/components/LabelMenu.test.js
 PASS  app/components/UserControls.test.js
 PASS  app/components/PropSearch.test.js
 PASS  app/components/Headers.test.js
 PASS  app/components/UserInputs.test.js
 PASS  app/components/Views.test.js
 PASS  app/components/app.test.js

Test Suites: 8 passed, 8 total
Tests:       8 passed, 8 total
Snapshots:   0 total
Time:        6.4s
Ran all test suites.

intuit-spring-cloud-config-inspector's People

Contributors

lexi-stein avatar marcellodesales avatar

Stargazers

 avatar

Watchers

 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.