21
Expose a REST service to Web within minutes with WSO2 App Factory Janaka Ranabahu Senior Software Engineer

Expose a Rest Service to the web within minutes with WSO2 App Factory

  • Upload
    wso2

  • View
    316

  • Download
    1

Embed Size (px)

DESCRIPTION

-

Citation preview

Page 1: Expose a Rest Service to the web within minutes with WSO2 App Factory

Expose a REST service to Web within minutes

with WSO2 App Factory

Janaka Ranabahu

Senior Software Engineer

Page 2: Expose a Rest Service to the web within minutes with WSO2 App Factory

**

About the Presenter

๏ Janaka Ranabahu๏ Senior Software Engineer๏ Graduated from University of Colombo

School of Computing๏ Member of WSO2 AppFactory team๏ Email - [email protected]

Page 3: Expose a Rest Service to the web within minutes with WSO2 App Factory

Overview

➢ Challenges

➢ Solution

➢ What is WSO2 App Factory

➢ App Factory on cloud

➢ App Factory features

➢ Demo

➢ Q & A

Page 4: Expose a Rest Service to the web within minutes with WSO2 App Factory

Developer Challenges

➢ Create code repositories

➢ Create build jobs, manage your build server

➢ Continuous build, deployment

➢ Create issue tracking projects

➢ Deploy and expose the application to the world

➢ Manage all the applications

Page 5: Expose a Rest Service to the web within minutes with WSO2 App Factory

➢ Manage application developers, add more people

➢ Govern applications, Move from Development to Testing to

Production

➢ Create and Manage application versions

Developer Challenges

Page 6: Expose a Rest Service to the web within minutes with WSO2 App Factory

An application management platform which supports application lifecycle management and

that can integrate with the existing tools, including

source control, issue tracker, build management,

and deployment.

Solution

Page 7: Expose a Rest Service to the web within minutes with WSO2 App Factory

What is App Factory?

WSO2 App Factory is the DevOps platform for

enterprises, that is designed to increase the

developer productivity and quality with integrated

application lifecycle management capabilities.

Page 8: Expose a Rest Service to the web within minutes with WSO2 App Factory

How Can App Factory help you

It helps you to,

➢ Create different applications and versions

➢ Do continuous build and deployment

➢ Govern applications from Development to

Production

➢ Manage users of an application

➢ and many more….

Page 9: Expose a Rest Service to the web within minutes with WSO2 App Factory

A REST Service in Few Minutes?

WSO2 Cloud

Powered by WSO2 App Factory

Powered by WSO2 API Manager

Page 10: Expose a Rest Service to the web within minutes with WSO2 App Factory

A REST Service in Few Minutes?

1. Sign up with https://cloud.wso2.com/

2. Login

3. Create a REST service

4. Launch it

Page 11: Expose a Rest Service to the web within minutes with WSO2 App Factory

IDE support

➢ Cloud IDE for WSO2 App Cloud

➢ modify code →build →git add →

git commit → git push

Page 12: Expose a Rest Service to the web within minutes with WSO2 App Factory

IDE support

➢ A complete Eclipse-based SOA development environment.

➢ Integrates with WSO2 App Factory to facilitate management of application development lifecycles.

login → update applications → change code → commit → etc.

Page 13: Expose a Rest Service to the web within minutes with WSO2 App Factory

Integrated Build Tool

➢ Build farm to build your applications

➢ Auto Build

➢ Build status and logs

Page 14: Expose a Rest Service to the web within minutes with WSO2 App Factory

Multiple Applications

➢ Notification wall for your applications

➢ Application overview

➢ Issue tracker summary

Page 15: Expose a Rest Service to the web within minutes with WSO2 App Factory

Application Dependencies

➢ Databases and Datasources

➢ APIs

➢ Properties

String propValue = "";String resourcePath = "/dependencies/webinardemo1/prop1";CarbonContext cCtx = CarbonContext.getThreadLocalCarbonContext();Registry registry = (Registry) cCtx.getRegistry(RegistryType.SYSTEM_GOVERNANCE);try{ if (registry.resourceExists(resourcePath)) { Resource resource = registry.get(resourcePath); if (resource.getContent() != null) { if (resource.getContent() instanceof String) { propValue = (String) resource.getContent(); } else if (resource.getContent() instanceof byte[]) { propValue = new String((byte[]) resource.getContent()); } } } }catch(RegistryException e) { propValue = "Unable to read the resource content";}

Page 16: Expose a Rest Service to the web within minutes with WSO2 App Factory

Versions and LifeCycle Management

➢ Create branch with a single click

➢ Build, deploy and developer test

➢ Promote

Page 17: Expose a Rest Service to the web within minutes with WSO2 App Factory

Issues?

➢ Report Issues in the built in issue tracker

Page 18: Expose a Rest Service to the web within minutes with WSO2 App Factory

Log Viewer

➢ Download or View Logs

Page 19: Expose a Rest Service to the web within minutes with WSO2 App Factory

DEMO

Page 20: Expose a Rest Service to the web within minutes with WSO2 App Factory

Q & A

Page 21: Expose a Rest Service to the web within minutes with WSO2 App Factory

Contact us !