Friday, March 6, 2015

How to use WSO2 Developer Studio to develop an application in WSO2 App Factory?!

To get an idea you can download and try out WSO2 App Factory from here.


Log in to the App Factory and create a new application.
       Refer Create an Application from Scratch 


Install WSO2 Developer Studio in your environment.
        Refer this to see how to install. 

  • After the installation is done, open the Developer Studio. 
  • Select the dashboard from the top pane.
  • From the view click Switch to App Cloud / App Factory perspective.
  • Click the Login icon as shown.
Login icon view
  • A Login window will appear.
  • In that click the App Factory option.
  • Give the App Factory URL and the credentials that you used to log in to the App Factory.
  • The App Factory perspective will open.
  • Details of the currently remaining applications appear.
  • To check out your code and modify, right click on your application and click Open.
  •  The available branches of the application appear under it.
     
  • Right-click on the main branch and click Check Out and Import.
  • The application opens in the Project Explorer.
  • Do your modifications and save.
     
  • Right click on the project in the Project Explorer 
  • Click Team > Commit
    Team > Commit
  • If prompted for credentials give your Git credentials. (It is the same as used to log in to the App Factory)
***************************************************************************
If your view does not have Team > Commit options you can follow the bellow steps to have it in your setup:
  • Go to the Home of your machine
  • View the hidden files (If you are using Mac OS you can follow this to show and hide the hidden files)
  • Delete the .git file
  • Add Apache Maven home path to the .bashrc file
       export M2_HOME=/Users/KalaCW/apache-maven-3.2.5
****************************************************************************
  • Enter a commit message in the pop up window.
  • Select the files you want to commit and click Commit and Push. 
  • This will add the changes you did in WSO2 Developer Studio to the files in the repository.
  • Go to the the Repos & Builds page in App Factory and click the Launch button associated with the master repository to run the application.

Now you have your developed Application Launched in WSO2 App Factory :)


2 comments: