Create An Application Using the Web Interface
Once installed you can run Lightbend Activator's web interface either from a file browser or from a command line. From a file browser, double-click on either the
activator (for Mac & Linux) or
activator.bat (for Windows) script. From a command line, run the script with a
This will start a local web server that can be reached at: http://localhost:8888
Inside your browser you can now create a new application based on one of the 449 templates. Both Lightbend and the community have contributed templates to Activator. Learn more about how to contribute your own template.
Once you have selected a template and optionally entered a name and location, select the "Create" button to have your new application created.
Create An Application Using the Command Line
If you'd prefer to create a new application from a command line, run:
You will then be prompted to enter an application name and the template name to start with. The output will look similar to this:
Enter an application name > hello-scala The new application will be created in /home/typesafe/Desktop/hello-scala Enter a template name, or hit tab to see a list of possible templates > hello-akka hello-play hello-scala reactive-stocks > hello-scala OK, application "hello-scala" is being created using the "hello-scala" template. To run "hello-scala" from the command-line, run: /home/typesafe/Desktop/hello-scala/activator run To run the test for "hello-scala" from the command-line, run: /home/typesafe/Desktop/hello-scala/activator test To run the Activator UI for "hello-scala" from the command-line, run: /home/typesafe/Desktop/hello-scala/activator ui
Open an Existing Application Using the Web Interface
Existing applications can be opened by running
activator.bat from a project's root directory. If the Activator UI is already running, then open http://localhost:8888/home in your browser and either select a known existing app, or folder icon next to Open existing app to browse to an existing app.
Working with Applications in the Activator UI
Once you have created or opened an application in the Activator UI you can:
- Read the Tutorial
- Browse & edit the code (select Code)
- Open the code in IntelliJ IDEA or Eclipse (select Code then the gear icon)
- See the compile output (select Compile)
- Test the application (select Test)
- Run the application (select Run)
- Inspect the application (select Inspect)
- Create a new application or open an existing one (select the application's name in the top left then select Manage Applications)
Whenever you save changes to a source file in the application, the changes will be recompiled, the application will be re-run, and the tests will be re-run.
The templates available in Lightbend Activator are licensed individually by the owner. Refer to template source code or owner for license information.