Giter Club home page Giter Club logo

koku-ui's Introduction

Koku UI

AGPLv3 Build Status

User interface is based on Patternfly Patternfly

To submit an issue, please visit https://issues.redhat.com/projects/COST/

Requirements

Getting Started

  1. Install requirements listed above.
  2. Clone the repository, and open a terminal in the base of this project.
  3. Run the command yarn install to install all the dependencies.

Building

yarn build

Testing

yarn test

Manifest

Produces a file used by product security for vulnerability and compliance tracking.

yarn update:manifest

Running Koku UI against a hosted Koku API, using webpack proxy

Note that this approach currently supports the Insights stage-beta, stage-stable, prod-beta, and prod-stable environments.

  1. Start development server
yarn start

Follow the prompts that follow.

  • Do you want to use local api? no
  • Which platform environment you want to use stage
  • Which Chrome environment you want to use? beta
  1. Open the following URL
https://stage.foo.redhat.com:1337/beta/openshift/cost-management

Running local instances of Koku UI & Koku API

Koku UI

  1. Start development server (Answer yes to run against local APIs)
yarn start

Follow the prompts that follow.

  • Do you want to use local api? yes
  • Which platform environment you want to use stage
  • Which Chrome environment you want to use? beta
  1. Open the following URL
 http://localhost:8002/beta/openshift/cost-management

Koku API

Refer to the project README for prerequisites

  1. Setup & run Koku API (see project README for more details)
> git clone [email protected]:project-koku/koku.git
> cd [KOKU_GIT_REPO]
> pipenv install --dev
> pipenv shell "pre-commit install"
> make docker-up-min or make docker-up-min-trino
> make create-test-customer
> make load-test-customer-data (use with docker-up-min-trino)
  1. Check to see if containers are running (optional)
> docker ps --format "table {{.Names}}\t{{.Image}}\t{{.Ports}}\t{{.Status}}"
  1. Watch the Koku API logs in another terminal (optional)
> docker-compose logs -f koku-server koku-worker
  1. Clean up (optional)
pipenv shell
make docker-down
make remove-db
docker system prune --all
exit

Running local instances of Settings Frontend & Koku API

Follow the steps to run a local Koku API instance

  1. Clone the Settings Frontend repository and install dependencies
> git clone https://github.com/RedHatInsights/settings-frontend.git
> cd [SETTINGS_FRONTEND_GIT_REPO]
> npm install
  1. Set the following variables in your environment
> export API_PORT=8000
> export LOCAL_API="/api/cost-management/v1/"
> export KEYCLOAK_PORT=4020
  1. Start development server
> npm run start:standalone:beta
  1. Open the following URL
http://localhost:1337/beta/settings/applications/cost-management

Useful Links

Libs

Tools

koku-ui's People

Contributors

dlabrecq avatar boaz0 avatar ddonahue007 avatar chambridge avatar dmiller9911 avatar adberglund avatar anooiam avatar redallen avatar mcoker avatar hyperkid123 avatar christiemolloy avatar karelhala avatar andresgalante avatar blentz avatar ryelo avatar chargio avatar aljesusg avatar landocalrizzian 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.