1.3.2. First Project Setup¶
This section provides an example walkthrough for setting up your first project with a temporary dashboard server on a single machine, where all components run together:
Dashboard server
Database
Analysis agent
The flow is intentionally short:
Set up and start the dashboard server.
Run the Project Wizard to create a minimal project configuration.
Run an analysis and check the results in the web dashboard.
Iterate by modifying the code and running the analysis again to see the delta of the results in the dashboard.
This setup is intended to help Axivion administrators understand how the configuration and the analysis work. It is not intended for developers, nor does it replace the central dashboard server and analysis agents of a production setup. For production use, set up a central dashboard server as described in the Dashboard Setup section, and configure all further projects to upload their results directly to it, as described in Deployment Model.
1.3.2.1. Prerequisites¶
All Axivion Suite commands used in this guide require an Axivion command prompt:
On Linux/macOS: in a shell, source
bauhaus-kshrcorbauhaus-cshrcfrom the Axivion Suite installation directory.On Windows: open an Axivion Command Prompt from the Start Menu, or open a standard command prompt and run
absvars.batorabsvars.ps1from the Axivion Suite installation directory.
1.3.2.2. Step 1: Set up the Dashboard¶
Run the following to create a dashboard configuration:
dashserver init SERVER_HTTP
For production setups, refer to the Dashboard’s initial Configuration chapter for a list of all possible options and their meanings.
Then, start the dashboard server:
dashserver start
Save the access credentials printed in the terminal, as you will need them to log in to the dashboard and to run the analysis in Step 3.
Optional status check:
dashserver status
After startup, open the following in any browser:
http://localhost:9090/axivion
Use the login information that was printed in the terminal by dashserver start.
1.3.2.3. Step 2: Create a Minimal Project with the Project Wizard¶
For this guide, we use a small C project consisting of a single
file.c and a CMakeLists.txt:
cmake_minimum_required(VERSION 3.10)
set(CMAKE_C_STANDARD 99)
project(app C)
add_executable(app file.c)
#include <stdio.h>
int main(void) {
printf("Hello, world!\n");
return 0;
}
Navigate to the root directory of the project and run:
axivion_config
If the environment variable BAUHAUS_CONFIG is unset, the Project Wizard opens automatically.
For an in-depth explanation of the configuration options, see Project Wizard.
In the wizard:
Choose
Use wizard.On the
Axivion Topologypage, selectManaged upload on single machine(for a description of the different topologies, see the Dashboard Setup section).Confirm the project root directory.
Keep the default configuration directory (typically
axivion/) unless you need a different location.Select the build system your project uses (e.g.,
CMake, which should be automatically detected) and specify its options in the subsequent steps (e.g.,Ninjaas the generator for a CMake project).Enter the path to the final output of your build (or use the
Detectbutton if supported by your build system, such asCMake).Select your compiler (e.g.,
GNU C/C++) and enter the compilation command (e.g.,gcc -std=c99 -o app file.cfor the CMake project above).On the VCS (Version Control System) page, select
None(in a production setup, select the VCS that your project actually uses) and keep theTrack all source code files internallyoption enabled in the next step.On the Dashboard URL page, specify the URL of your dashboard (e.g.,
http://localhost:9090/axivion).If desired, activate a standard set of rules for your project (e.g.,
MISRA C:2025for a C project).Complete the wizard and click save.
Once complete, the wizard creates an /axivion folder containing a start script in your
configuration directory:
Windows:
start_analysis.batandstart_analysis.ps1Linux/macOS:
start_analysis.sh
1.3.2.4. Step 3: Run an Analysis and Check the Results¶
Before running the analysis, set the dashboard credentials that were printed by
dashserver start in Step 1. The start script (e.g., start_analysis.sh on
Linux/macOS and start_analysis.bat or start_analysis.ps1 on Windows)
contains a block that sets AXIVION_USERNAME and AXIVION_PASSWORD.
Enter the credentials there.
Note
This is a quick way to get started. For repeated or production use, set
AXIVION_USERNAME and AXIVION_PASSWORD as persistent
environment variables on your CI system instead.
The Axivion plugins also set these environment variables.
The block in the start script only takes effect if none of the following are set:
AXIVION_USERNAME, AXIVION_PASSWORD, or AXIVION_PASSFILE.
Run the generated start script from the project root directory.
Windows:
axivion\start_analysis.bat
Linux/macOS:
./axivion/start_analysis.sh
The script triggers an initial end-to-end run (build integration, analysis, and result upload/update for the configured dashboard project).
When the script finishes successfully:
Open
http://localhost:9090/axivion.Verify that your project appears in the list.
View the findings in the issue lists and source views.
To iterate, modify the code and run start_analysis.bat or start_analysis.sh
again.