# RAP Examples

Note: This chapter assumes that you have downloaded the latest RAP Runtime SDK. The download and instructions on how to install it are available here.

There are two kinds of example types available.

- ### Templates

  To create a RAP plug-in from a template, open the New Project wizard (File > New > Project) and select Plug-in Project. Type a project name (e.g. mail) and click Next. On the following page, ensure that the option This plug-in will make contributions to the UI is selected and no Rich Client Application will be created. Click Next. Now you should see a page where you can select a template. Select one of the templates with the RAP prefix (e.g. RAP Mail). Click Finish.

  The plug-in comes with a preconfigured launch configuration. Open the Run dialog (Run > Run Configurations...), select the RAP Launch Configuration that matches your project name (e.g. mail) and click Run to start.

- ### Demo Plug-in

  The RAP project comes with two example applications demonstrating the features and capabilities of RAP.

  The first application provides a workbench very closely aligned to the RCP workbench. The second demo, referred to as the 'controls demo', shows what widgets there are and that they behave very similar to the SWT widgets.

  To access and run these demo applications, please open the Plug-ins view (e.g. through the Plug-in Development perspective). Select the plug-in named `org.eclipse.rap.demo` which contains both demo applications, right-click on this plug-in and select Import as > Source Project. This plug-in will then appear with all source files in your workspace. The demo also provides a ready-to-use Equinox Launch Configuration.

  After launching, you can access the workbench demo using the URL `http://localhost:<port>/rap?startup=default`. To try the controls demo enter the following URL: `http://localhost:<port>/rap?startup=controls`.