Usage

Starting and Stopping StackState

StackState and all of its dependencies need to be started from the command prompt. This can be done with a single command but if preferred StackGraph (the database used by StackState) can be started separately. The executables needed can be found in the installation directory under the bin directory or for stackgraph inside stackgraph/bin. Windows users can use the provided .bat scripts while Linux users can use the provided .sh scripts.

Single command startup for both StackState and StackGraph

StackState can be started in demo mode or normal mode. In demo mode some data will be injected into StackState for you to play around with.

  1. Starting StackState and Stackgraph:
  2. Navigate to the installation directory of StackState.
  3. The first time you start StackState, you have to enter the license key by executing:
    • Linux: bin/sts.sh register --key ___
    • Windows: bin/sts.bat register --key ___
  4. Start StackState in demo mode:
    • Linux: bin/sts.sh demo
    • Windows: bin/sts.bat demo
  5. Start StackState in normal mode:
    • Linux: bin/sts.sh start
    • Windows: bin/sts.bat start
  6. To see the usage of the combined StackState and StackGraph script:

    • Linux: bin/sts.sh help
    • Windows: bin/sts.bat help
  7. Open your browser to: http://localhost:7070

  8. Stopping StackState and StackGraph:

    • Linux: bin/sts.sh stop
    • Windows: bin/sts.bat stop To stop StackGraph gracefully do not press ctrl-c, but open another window and execute the stop command. As mentioned earlier we are working on a better experience.

Separate startup for StackState and StackGraph

  • Navigate to the installation directory of StackState.
  1. Start StackGraph (StackState’s database):
    • Linux: stackgraph/bin/sg-service.sh start (runs as a daemon)
    • Windows: stackgraph/bin/sg.bat start
    • keep the terminal open

Open a second terminal: 2. Now start StackState: - StackState can be started in demo mode or normal mode. In demo mode some data will be injected into StackState for you to play around with. - The first time you start StackState, you have to enter the license key by executing: * Linux: bin/sts-standalone.sh register --key ___ * Windows: bin/sts-standalone.bat register --key ___
- Start StackState in demo mode: * Linux: bin/sts-standalone.sh demo * Windows: bin/sts-standalone.bat demo - Start StackState in normal mode: * Linux: bin/sts-service.sh start (note: this will run in daemon mode) * Windows: bin/sts-standalone.bat start - To see the usage of the StackState standalone script: * Linux: bin/sts-standalone.sh help * Windows: bin/sts-standalone.bat help

  1. Open your browser to: http://localhost:7070

  2. Stopping StackState:

    • Linux: bin/sts-standalone.sh stop
    • Windows: bin/sts-standalone.bat stop
  3. Stopping StackGraph (StackState’s database):

    • Linux: stackgraph/bin/sg.sh stop
    • Windows: stackgraph/bin/sg.bat stop To stop StackGraph gracefully do not press ctrl-c, but open another window and execute the stop command. As mentioned earlier we are working on a better experience.