Giter Site home page Giter Site logo

mobile-developer-console's Introduction

CircleCI License

Mobile Developer Console

Try it out

Local Cluster

  1. Make sure you have the latest version of Minishift installed.

  2. Run the following commands:

    ./scripts/minishift_start.sh
    ./scripts/prepare.sh
    ./deploy/deploy-image.sh $(minishift ip):8443 mobile
  3. Open the mobile developer console URL printed by the script.

Remote Cluster

  1. Make sure you have oc CLI installed and logged into the remote cluster as a cluster-admin user.

    oc login <openshift-url>
  2. Export NAMESPACE and OPENSHIFT_HOST variables and run prepare.sh script:

    export NAMESPACE="<your-project-name>"
    export OPENSHIFT_HOST="<your-openshift-host>"
    ./scripts/prepare.sh
  3. Deploy the service using one of the following commands:

    # Deploy the latest image
    ./deploy/deploy-image.sh $OPENSHIFT_HOST $NAMESPACE
    
    # OR deploy the service using S2I
    ./deploy/deploy-image-stream.sh $OPENSHIFT_HOST $NAMESPACE <git-ref>
  4. Enable CORS

Development

Prerequisites

  • Nodejs >= 10
  • An OpenShift cluster. You can either use a local cluster, or a remote cluster.

Local OpenShift Cluster

It is recommended to use the latest release of Minishift to run the local cluster. Make sure you have it installed and then run the following commands to start development locally:

./scripts/minishift_start.sh
./scripts/prepare.sh
./scripts/development.sh # You can add "--skip-npm-install" argument if you want to skip installation of node modules

Remote OpenShift Cluster

If you are using a remote cluster, make sure you have oc CLI installed locally and login to the remote cluster. You will need a user that has cluster-admin permission.

oc login <openshift-url>

then you need to run the prepare script:

./scripts/prepare.sh

and start the development server:

export OPENSHIFT_HOST=<openshift-hostname>
export OPENSHIFT_USER_TOKEN=$(oc whoami -t)
npm run start:server &
npm run start:client

This will start the MDC in development mode, and you should see the console opened inside a browser tab. It will watch local files and the browser tab will be refreshed automatically whenever changes are made inside the ./src directory.

Enable CORS in the OpenShift cluster

NOTE: As of version 1.1.12 this is not required anymore as MDC provides a proxy between itself and the Openshift API

The mobile developer console will need to talk to the OpenShift API server directly. However, the requests will likely to be blocked by the browser due to CORS restrictions.

To fix this, you will need to manually update the OpenShift master configuration to allow CORS requests from the mobile developer console.

If you are using Minishift, you should use the CORS addon. Installation of this plugin is automated in ./scripts/minishift_start.sh.

If you are using a remote cluster, you should check OpenShift configuration guide on how to update the CORS configurations.

Build

make build

Test

Unit tests

make test

Release

Create a new Git tag and the CI job will automatically push the built image to quay.io.

mobile-developer-console's People

Contributors

aidenkeating avatar aliok avatar boomatang avatar camilamacedo86 avatar ciaranroche avatar danielpassos avatar evanshortiss avatar grdryn avatar jhellar avatar karstengresch avatar mmusil avatar odra avatar psturc avatar renovate-bot avatar renovate[bot] avatar secondsun avatar sedroche avatar stephencoady avatar wojta avatar ziccardi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mobile-developer-console's Issues

Check dropdown functionality

I know there were some questions whilst implementation the UI regarding the dropdowns, lets double check that these are working how they were intended.

Fix styling issues

Description

Fix the background for pages from grey to white
fix some spacing issues.

Environment

  • Operating system:
  • OpenShift versions:
  • Project Versions:

Steps to reproduce

Go to the "mobile client" page

Screenshot from 2019-08-14 12-54-56
Screenshot from 2019-08-14 12-59-37

Update Masthead to PF4

Description

Masthead should be updated from PF3 Masthead to PF4 masthead so it's consistent across product lines.

Update Alerts and Wizards to use pf4

Description

On the Mobile Client Page update the style of alerts and wizards

Expected Behavior

Should use pf4.

Actual Behavior

Uses pf3 and a blend of other styles

Environment

  • Operating system:
  • OpenShift versions:
  • Project Versions:

Steps to reproduce

  1. Run your code locally
  2. Create an app
  3. Click on "Create binding", and you should see the wizard and alert pop-up

Wizard form validation

Confirm that the form validation inside of the wizard behaves as it did before the change.

Add black and white version of icons and add functionality

Description

Convert the svg's used for the services to black and white svgs and upload them in the img folder. Also add functionality so that when services are in "Available Services" the icons are b&w, and when the services is bound the icon changes to color.

Expected Behavior

B&W image --> Color Image

Actual Behavior

All icons in Color at all stages of the binding process

Environment

  • Operating system:
  • OpenShift versions:
  • Project Versions:

Steps to reproduce

Run locally

Receiving bunch of errors after following the instructions

Description

Receiving these errors:

serviceinstances.servicecatalog.k8s.io is forbidden: 
User "system:serviceaccount:myproject:mobile-developer-console" cannot list serviceinstances.servicecatalog.k8s.io in the namespace "myproject": 
User "system:serviceaccount:myproject:mobile-developer-console" cannot list serviceinstances.servicecatalog.k8s.io in project "myproject"

Environment

  • Operating system: Fedora
  • OpenShift versions: 3.9
  • Project Versions: master

Steps to reproduce

Did these:

git clone https://github.com/aerogear/mobile-developer-console && cd mobile-developer-console
./scripts/mdc-oc-cluster-up.sh
Navigate to https://127.0.0.1:8443/console/project/myproject/overview
Log in with user developer (developer/123)
Follow the link to mobile-developer-console

Received the errors in the screenshot. It could be nothing, but still would be nice to not show them.

screenshot from 2018-11-09 14-32-11

Override the Form styles in the Wizard components

Description

The forms in the wizard are using a third-party API. We don't want to use PF Forms, but we want them to look like PF.

Expected Behavior

Act like pf4 forms

Actual Behavior

Looks like third party forms

Environment

  • Operating system:
  • OpenShift versions:
  • Project Versions:

Steps to reproduce

Bind a service

Error in keycloak-operator : failed to get resource type: failed to get the resource REST mapping for GroupVersionKind

Description

i deployed the application on openshift 3.9 as described in the documentation. After i login to the mobile developer console i am unable to create a mobile application. I am getting a popup with the error Request failed with status code 503
The logs of the keycloak-operator shows the following error:

time="2019-11-15T15:37:19Z" level=info msg="Keycloak: example-provision, Phase: provision"
time="2019-11-15T15:37:19Z" level=error msg="error syncing key (aerogear/example-provision): phase provision failed: failed to get resource client: failed to get resource type: failed to get the resource REST mapping for GroupVersionKind(/v1, Kind=Route): no matches for kind \"Route\" in version \"v1\""

Environment

  • Operating system: centos 7
  • OpenShift versions: 3.9
  • Project Versions:

.

.

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.