aerogear/mobile-developer-console
Use the dedicated script to start Minishift. This enables CORS gives the developer user cluster-admin privileges.
./scripts/minishift_start.shSet up the cluster:
./scripts/prepare.shLogin to remote cluster as a user with cluster-admin privileges:
oc login <openshift-url>Set up the cluster:
./scripts/prepare.shServer:
OPENSHIFT_HOST=https://$(minishift ip):8443 OPENSHIFT_USER_TOKEN=$(oc whoami -t) npm run start:serverClient:
npm run start:clientAlternatively, when using Minishift you can use the development script to start the server and client together:
./scripts/development.shNote: The development script detaches the server process before starting the client. Since the client can be quite slow to start initially, using the development script can be slow if you need to restart the server.
If you use Visual Studio Code, you can use the following configuration to debug the MDC server and client. I use Firefox so this configuration would need to be adjusted if you want to use Chrome/others.
{
"version": "0.2.0",
"configurations": [
{
"type": "firefox",
"request": "attach",
"name": "Client"
},
{
"type": "node",
"request": "attach",
"name": "Server",
"processId": "${command:PickProcess}"
},
],
"compounds": [
{
"name": "Server/Client",
"configurations": ["Server", "Client"]
}
]
}There are currently 4 available mobile services in MDC. Two of these, aerogear/unifiedpush-operator and aerogear/mobile-security-service-operator can be installed using operators.
I have created a install-mobile-services.sh which you can use to install these services automatically.