Skip to main content
Version: 2.7

Running a Back-end

Olympe offers full stack capabilities, and is able to run both front-end and back-end applications. This tutorial shows how to:

  • Run a back-end application (called Service App)
  • Run long running services
  • Interact between front-end and back-end
  • Push configurations, such as API keys, to Service Apps
note

This tutorial recreates the Using Back-ends sample project.

Create a Service App and a Service

Create a new project, and in that project create the following:

  • A Service App
  • A Service

SHOW SCREENSHOT OF APP

A Service App is a back-end version of a UI App. It is meant to be run within a node.js process instead of being run within a browser.

Service Apps can run two things:

  1. Services: these start when the Service App starts, and run until the Service App is stopped.
  2. Remote Actions: these are called on demand by front-ends or by other back-ends.

More details on the behavior of each can be found here.

You can start a service on your project. Add a Hello World + screenshot / video of service implementation + link with service

SHOW LOGS OF NODE APP RUNNING

To prove that the service is still running, you can add a Ticker to it. When doing so, you now see that the console logs contain multiple lines.

SHOW SCREENSHOT OF SERVICE IMPLEMENTATION SHOW NEW LOGS OF NODE APP RUNNING

Add a Remote Action

Create a Remote Action and add it to the Service App

SCREENSHOTS

Create a UI App with a single button, and call that remote action into the service app

Run the Service App on a remote instance

LAUNCH ON BROWSERLING