Getting Started with Sausalito Tools for Eclipse
Sausalito tools for Eclipse provides support for your whole software development process, from testing and debugging to the deployment.
Download, Install, Run Sausalito Tools for Eclipse
In order to get the Sausalito Tools up and running you simply need to follow these steps:
-
Download Sausalito Tools for Eclipse from the Download page
- Unzip the package to a place of your choice
-
Go to the unzipped directory
Sausalito Toolsand start thesausalitoexecutable - If you start the Sausalito Tools for the first time you need to select a Workspace, i.e. a directory of your choice, which will be used to store all Sausalito Projects that you will create.
Create a new Project
To create a new project from Sausalito Tools main workbench follow these steps:
-
click on "File", "New", and choose "Sausalito Project".
-
The "New Project Wizard" of Sausalito is requiring a project name and a logical URI. The logical URI is an arbitrary identifier for your project that acts as a base URI for all your XQuery module namespaces that you may add to your project. Finally, click "Finished".
If you are new to Sausalito and/or XQuery, you could also use one of the project templates available.
- If you want to learn more about the Sausalito project structure, read section Sausalito Project Structure.
Run a Project on Your Computer
In order to test your project locally, you need to use the Sausalito launcher:
-
Select a File or Directory within the Project Explorer on the left-hand side and click the green "Run" button in the top toolbar (see screenshot).
-
The status of the running application will appear in the eclipse console:
-
The Sausalito launcher will automatically open the start page of the project within the internal browser of Sausalito Tools...
-
... but you could also use your favorite browser once the project has started. Simply, point your browser to http://localhost:8080.
-
Now, you can start working on the XQuery code...
-
... and see your changes by refreshing the browser (no restart of the server is required):
-
Sausalito Tools for Eclipse is providing assistance to write your application in XQuery. It features:
- Semantic highlighting
- Static code analysis
- Code completion and templates
- Code outline
- Debugger
-
When you want to stop developing you can click on the red "Stop" button in the top toolbar of the status panel:
-
Before restarting a project, you have to wait until the shutdown process has finished stopping the server:
Deploy Your Project in the Cloud
In order to make your app accessible throughout the internet, you need to do the following steps:
- Register an account within the 28msec portal and/or sign in.
-
Click on "Manage Applications" > "Create New Application" and create a new application, for example called "myproject". The application name has to be unique across all users for every Sausalito application. Therefore, the name "test" is most probably already in use by another user.
-
Now, within the Sausalito Tools right click on your project and select "Deploy Project...":
-
Enter the application name of the app that you created in the portal, your username, and password. Click "Finish".
-
After the project has successfully been deployed...
-
... you can immediately access it through the web using the app name that you used to create the project as prefix for ".my28msec.com", for example the project "myproject" is then accessible via http://myproject.my28msec.com.