How do I run the Depot sample Rails application?

First you need to get the plugin (If you have the NetBeans Ruby download, it is already installed). If your network uses a proxy, choose Tools > Options from the main menu, select the Manual Proxy Settings radio button in the Options dialog box, type the HTTP Proxy and Port for your proxy, and click OK. Choose Tools > Plugins from the main menu. In the Plugins dialog box, click the Available Plugins tab, scroll to and select the checkbox for Depot Sample, and click Install. Complete the wizard steps.

This sample app also requires the MySQL database server.

To create the project, right-click in the Projects window and choose New Project. In the New Project wizard, expand Samples in the Categories list and select Depot Application in the Projects list. Click Next, optionally select a different location, and click Finish.

A readme displays in your browser. You MUST follow the instructions in the sections titled "Creating the Sample Databases" and "Configuring The Database Environment," or you will get the following cryptic error when you run the application.

Application error (Apache)

Change this error message for exceptions thrown outside
of an action (like in Dispatcher setups or broken Ruby code)
in public/500.html

To run the application click the Run Main Project button or press F6.

Besides the bookstore pages, there are also some admin pages. To see these pages, change the URL to http://localhost:3000/admin (you might need to replace 3000 with the port for your server). Log in using "admin" and "secret" as the name and password.

There's also a REST interface that can be accessed by typing:


Which correspond to the three project in the database (you'll need to place some orders before anything shows up).

Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo