Giter VIP home page Giter VIP logo

appregistry's Introduction

appregistry

This is a simple frontend for APIC-EM which allows business owners to register applications in a portal with a minimal amount of technical details about the application, and transfer that information to APIC-EM to be consumed in EasyQos policies

screenshot

Configuration

Set the following environment variables, if not set, these will default to the APIC-EM sandbox on DevNet.

export APIC_URL=https://myapic.com
export APIC_USER=admin
export APIC_PASSWORD=supersecret

Additionally, if you would like notifications on Cisco Spark when applications get registered, add the following

export SPARK_TOKEN=<SPARK TOKEN>
export SPARK_ROOM=<id of spark room>

If you are using the DevNet Sanbox, you can login to see the changes pushed by this application at: https://sandboxapic.cisco.com/

Running

Locally

Install dependencies

virtualenv venv
source venv/bin/activate
pip install -r requirements.txt

Run

python app.py

Docker

Perhaps the simplest way to run this application is via Docker, simply modify the values in ./ENVIRONMENT and run the following command

docker run -p 5000:5000 --env-file ENVIRONMENT imapex/appregistry

CiscoShipped.io

You can also deploy this application on Cisco Shipped, simply fork this repo, create a new application in Cisco Shipped, and add this repository as a service. Don't forget to add your enviornment variables to your deploy target

Customization / Branding

This app also allows for quick customizations, you can change the title of the page as well as the logo image to suit your demonstration.

export TITLE = "My company name"
export LOGO = "http://location.for/mylogo.jpg"

These settings are also exposed as a RESTFul API

curl -X POST -H "Content-Type: application/json" \
-d '{"LOGO": "http://mysite.com","TITLE": "my custom name"}' \
"http://127.0.0.1:5000/api/customize"

appregistry's People

Watchers

James Cloos avatar Kevin Corbin 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.