Skip to content

CSSPLICE/splice-catalog

Repository files navigation

splice-catalog

Setup

cp env.example .env

Development

In order to get the development environment setup, you'll need to follow these steps:

  1. Build and start: docker compose --profile catalog up --build -V. [Depending on your internet connection, this might take a long time.] [The -V flag is critical if dependencies (like meilisearch) have changed, as it refreshes anonymous Docker volumes.]
  2. [If this is a fresh install:] cp env.example .env
  3. Install the node packages: docker compose --profile catalog run catalog yarn install
  4. Initialize Search: Run docker compose exec catalog yarn search:seed . [This initializes the search ranking rules and synonym mappings from the database. Data will then sync automatically as you import files (OpenDSA/CodeCheck).]
  5. Start the splice catalog application: docker compose --profile catalog up
  6. Running the application per step 3 will consume the current terminal. To exec into the running container, open a new terminal in the repository and run: docker compose --profile catalog exec catalog bash (if you are on windows, you'll need to add winpty)

From inside this container, you can also run yarn commands (migrate, install, add , etc)

  1. At this point, the catalog will be running at http://localhost:3000/

Import Catalog Data

Once the application is running, upload any data files to http://localhost:3000/upload

Import Ontology Data

docker compose --profile catalog exec yarn import:ontology

Interact with database

To access the database from the command line:

docker compose --profile catalog exec db bash
mysql -usplice -psplice
use splice;

Clear Database

If you end up needing to clear the database and start over, you can run docker compose --profile catalog down --remove-orphans -v to remove the volumes. You should accompny this with a build and an up to reset everything

Swap Branches

If you are developing the catalog, you should be checking out the staging branch git checkout staging

See documentation here: docs

Production

docker compose --profile production build

docker volume rm splice-catalog_staticvolume

docker compose --profile production up -d

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors