Creating your first application

From Stax

Jump to: navigation, search

This tutorial will quickly guide you through the application creation, testing, and deployment cycle for your application.

Start by creating a simple application using the stax create command. (the last argument of this command is the local directory to install the application and is used as the Stax application ID)

C:\apps>stax create myfirstapp

Change into the new application directory

C:\apps>cd myfirstapp

Optionally compile your application (running it automatically compiles it)

C:\apps\myfirstapp>stax compile

Test your application using the stax run command. This will start a local instance of the Stax server for running your application. After starting the server, you can connect to http://localhost:8080 to see your running application.

C:\apps\myfirstapp>stax run

You can now make code changes using your favorite tools. If you are an Eclipse user, you can import the application directory into Eclipse as a project.

After coding and testing you application, its time to deploy the application to the Stax cloud. You can use the stax deploy command to deploy your application.

C:\apps\myfirstapp>stax deploy

After your application is deployed, you can see the URL it was assigned in the command output, or your can login to Stax AppConsole to look up your application's URL.

Personal tools
Navigation