This is a server side application has been developed to interact with some components of the Cloud foundry Architecture: Cloud Controller, UAA & Metrics services installed in a Cloud Foundry Instance. Cloud Foundry offers a CLI to manage a app life cycle in combination with the Web apps provided by the commercial Cloud Foundry platforms as PWS or Bluemix. This Web App allows the user create the app, uploads the code and execute the typical actions (Start, Stop, Restage, Remove, Scale) This is based on the project from https://github.com/prosociallearnEU/cf-nodejs-dashboard, but with the following changes Changes:
- Remove the Angular JS UI
- Change the Routes/API's to accept a JWT token
- Change the dependency on the backend CF client to https://github.com/rjain15/cf-client
The application is able to run in localhost or hosted. To test in local, the steps are:
git clone https://github.com/rjain15/cf-nodejs-server.git
npm install
In case the node_modules/cf-client doesn't exist, do the following
npm install rjain15/cf-client --save
To start:
nodemon
-- or --
npm start
and later, using postman you can test the various API endpoints :
http://localhost:5000/
Login
- List of Organization
- List of Spaces from the first Organization
- Memory used in the First Organization
- Organization Quota associated with the first Organization
Space / Apps
-
Stage status
-
App status
-
Instances
-
Add a new application to current space
-
Refresh window
Space / Apps / Add
App
- Open: This method checks if the application is running and open in a new tab the application.
- View: This method shows details about the app's configuration.
- Upload: This method is used to upload source code to the app.
- Start/Stop: This method is used to Start/Stop an app.
- Restage: This method is used to Restage the Droplet.
- Remove: This method is used to remove an application.
- Log: This method is used to get logs from the application.
- Scale: This method is used to update some parameters in the application.
App / View
App / Upload
App / Logs
App / Scale