Skip to content

Comfy-Org/registry-web

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Comfy Registry Frontend

The frontend React App for Comfy Registry.

Registry React Frontend Github

Registry CLI Github

Getting Started

Set up IDE

VSCode

Install Prettier + Eslint extensions.

.vscode/settings.json is set up in the workspace to lint + format code on save.

Local Development

Run the development server

git checkout dev
brew install pnpm
pnpm install
pnpm run dev

Open http://localhost:3000 with your browser to see the result.

Storybook

We use Storybook for component development and documentation. To run Storybook:

pnpm run storybook

Open http://localhost:6006 to view the component library. Storybook allows you to:

  • View and interact with components in isolation
  • Test different component states and variations
  • See documentation for components
  • Develop UI components in isolation without running the full app

Visual Testing with Chromatic

We use Chromatic for visual testing and UI reviews:

# Make sure to set your project token
export CHROMATIC_PROJECT_TOKEN=your_token
pnpm run chromatic

See docs/chromatic-setup.md for more details on our Chromatic CI/CD integration.

Generate Code Stub based on OpenAPI Spec

Start the dev server.

Currently, the Orval spec is in orval.config.js. It points to the OpenAPI spec in your localhost server. This can be changed to staging or prod.

npx orval

This generates react queries that you can use in your Components.

Deployments

Production

Make a PR to the main branch. Once merged, Vercel will deploy to https://comfyregistry.org

CORS

To enable CORS on the google cloud storage bucket, reference the cors.json file. More info here.

gcloud storage buckets update gs://comfy-registry --cors-file=cors.json

About

React App for Comfy Registry

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 9

Languages