Getting started
This page describes how to get started on a local machine using a local software catalog. See the user manual for how to connect to a remote catalog.
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 configuration file and catalog files
must be located in this directory:
# For convenience, add CATALOG_DIR to your .env file, so you don't have to specify
# it on the CLI.
echo CATALOG_DIR=/abs/path/to/your/catalog >> .env
# Run the server
make docker-up
If the defaults (config file is swcat.yml,
catalog directory is catalog/) do not apply, see compose.yml
for the environment variables to set.
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)
Prerequisites
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.
Getting started (Windows)
Prerequisites (Windows)
- Install Graphviz.
- Download the latest binary release version
swcat-<version>.zipfrom the GitHub releases page.
Run swcat.exe
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 -root-dir to any software catalog you want to view or edit.
swcat expects a fixed structure under the root directory: swcat.yml, plugins.yml, and a catalog/ directory.