Getting started
Getting started (Windows)
Prequisites
- Install Graphviz.
- Download the latest binary release version
swcat-<version>.zipfrom the GitHub releases page.
Run swcat
Unpack swcat-<version>.zip to any folder you like and run:
Point your browser at http://localhost:9191 and explore the example catalog.
Adjust the -config path and path to the catalog files (examples/flights) to any
software catalog you want to view or edit.
Getting started (Docker)
To run swcat locally in Docker and serve the example catalog folder:
Check out the source code repo:
Before the first execution, set up the .env file, so files modified inside the
container have proper user and group IDs on the host file system:
Then, run docker via make:
Then open: http://localhost:9191
To stop the process:
- Docker Compose maps host 9191 to container 8080.
- The catalog is mounted in read-write (rw) mode at
/cataloginside the container.
If you want to work with your own catalog, pass its location (folder) in the
CATALOG_DIR environment variable. Your (optional) configuration file must be located
at $CATALOG_DIR/swcat.yml.
Tip
swcat refuses to start if there are catalog validation errors.
Check the stderr logs in such cases to understand the problem.
Getting started (w/out Docker)
Prequisites
Build and run
Check out the source code repo:
Build the frontend artifacts:
Now run the server, using the example catalog files:
Point your browser at http://localhost:9191 and explore the example catalog.