catalog-server
This package serves as a catalog page for VulcanSQL.
Install
-
Install package
npm i @vulcan-sql/catalog-server
-
Use @vulcan-sql/cli to start the catalog server.
(The VulcanSQL server needs to listen first.)vulcan catalog
-
Open in browser. By default, it is http://localhost:4200.
Running a Production
-
Use @vulcan-sql/cli to generate the catalog server assets.
Node.js:
vulcan package -o node -t catalog-server
Copy the files in the
./dist
folder to your production servers. Then runnpm install
&&node index.js
to start the server.Docker:
vulcan package -o docker -t catalog-server docker build -t <tag> ./dist
Configurations (optional)
These are some configurations related with catalog in vulcan.yaml
.
- The listen
port
can be change or just directly usevulcan catalog -p 4200
. - The production packager
folderPath
also can be change if needed.
# change the listen port
catalog:
port: 4200
# change the production packager folder path
node-packager:
catalog-server:
folderPath: dist
docker-packager:
catalog-server:
folderPath: dist