How to get an OpenRasta up and running
o init-wrap <Name Of Project>
You have now created the project in OpenWrap. That is, you’ve set up a folder to contain the “wraps” or packages that will be used in your project.
Create the Site
[EDIT: Before you can run this command you need to do o add-wrap openrasta-templates to add the wrap to your project]
OpenWrap has a nice template built in for OpenRasta. You can issue the command:
o new-openrastasite -Name <SolutionName> -Namespace <BaseNamespace>
I chose to use PaymentService as my solution Name, and PaymentService.Api as my base Namespace in the example above.
Launch Studio
At this point, you’re really done. The following screen shot shows that it created PaymentService.sln as well as my first project PaymentService.Api. I simply executed
..src>PaymentService.sln & to launch my solution in to Studio (but you could actually load it any way you want.)
[EDIT: Or as Sebastian points out in the comments, add a -starteditor to the o new-openrastasite command and it will launch the editor for you — Thanks Sebastian]
Once this loads, you can hit F5 to run it, and you should be greeted with the default “Hello World” in XML. From here on out, it’s just writing you’re service.