Openverse is a search engine for openly-licensed media. This monorepo includes all application code.
Using workspaces
This is an opinionated guide that only applies to VS Code users. If you use a
different editor or IDE, these instructions will not apply to you.
This is a guide to uses VS Code's multi-root workspace feature to work on multiple sub-stacks of Openverse.
Steps
Clone the GitHub repository.
git clone --filter=blob:none https://github.com/WordPress/openverse.git # or your forkIn the same directory as the repository, create a workspace file
openverse.code-workspacewith the following configuration.{ "folders": [ { "name": "monorepo", "path": "openverse" }, { "name": "catalog", "path": "openverse/catalog" }, { "name": "indexer_worker", "path": "openverse/indexer_worker" }, { "name": "ingestion_server", "path": "openverse/ingestion_server" }, { "name": "api", "path": "openverse/api" }, { "name": "frontend", "path": "openverse/frontend" }, { "name": "documentation", "path": "openverse/documentation" }, { "name": "python/openverse-attribution", "path": "openverse/packages/python/openverse-attribution" } ], "settings": { "terminal.integrated.cwd": "${workspaceFolder:monorepo}" } }From VS Code, open this workspace file. You should see the entire repository open in VS Code with all sub-stacks depicted as top-level folders.
