UNDER CONSTRUCTION
Welcome to the Getting Started Tutorial
Get an idea of how to start a Saga project using the Saga UI (no programming knowledge needed).
Saga is made up of several projects that can be used stand-alone or together. For this tutorial, we'll be using the following projects to set up an instance of Saga and be able to start a new project:
Start by cloning each repository and building the projects in the previous order. From 1 to 10, you can build each of them by using the following command in each project:
|
The eleventh package can be built via Node:
|
If you have any database to use with saga, just run the following command in the database folder to import it to Mongo:
|
Saga Server Parser configuration files are specified in the Configure Pipelines & Resource Providers section. If you change any of those files in the saga-server-parser/src/main/resources folder, you need to rebuild the project or transfer the files to the directory specified in the saga-server-parser/startup.bat.
For the UI, you need to check the file in config/env/development.js. The display name, "Saga" in following snippet, is the name the UI will show for the project, but what it is important is the uri attribute from db, this is the database that Saga will be using. In the snippet, the database in use will be "SagaDB", change it according to your preference. If you loaded a Mongo database in step 2, you must change "SagaDB" to the name of the database you loaded. If you want to start a new database, just choose a proper name and the UI will create the database.
solutions: [ { display: 'Saga', uri: process.env.MONGOHQ_URL || process.env.MONGOLAB_URI || 'mongodb://' + (process.env.DB_1_PORT_27017_TCP_ADDR || 'localhost') + '/SagaDB', keepAlive: 10000, }, //Database info for patter matching server switch // Enable mongoose debug mode }, matcher: { uri: 'http://localhost:8080/_saga' } } ] |
Before starting Saga, make sure Mongo is up and running. Try to run:
|
If the command does not run, run the following command from the MongoDB/Server/3.6/bin:
|
Then, you will need to run the Saga Server Parser and the Saga Server UI. The first to be run is the Saga Server UI, since it will create the database if it doesn't exist. Go to the Saga Server UI directory and run the startup.bat from a console:
|
And then do the same for the Saga Server Parser:
|
If you didn't change the port, you should be able to access saga at http://localhost:8080/
Panel | |
---|---|
On this page:
|
Related pages
Content by Label | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...