@sourcegraph/cody-web
v0.12.0
Published
Cody standalone web app
Downloads
1,425
Keywords
Readme
Cody standalone web app
Status: experimental (currently is used by Sourcegraph Web client)
The @sourcegraph/cody-web
package implements a standalone web app/components for Cody Web.
To run demo standalone web app:
- Run
pnpm dev
- Then open http://localhost:5777 and enter a Sourcegraph.com access token.
If the demo app doesn't load, it could be because there's an invalid token stored in local storage or in your IndexDB.
To clear the token, open the browser dev tools and run localStorage.removeItem('accessToken')
.
To clear tokens in IndexDB, open browser dev tools and go to applications tab and clear
IndexDB tables for http://localhost:5777 domain.
How to run within Sourcegraph client
- Build
@sourcegraph/cody-web
package by runningpnpm build
- Register package local link with
pnpm link --global
- Go to the Sourcegraph repository and create a link with
pnpm link @sourcegraph/cody-web --global
- Run Sourcegraph
sg start
orsg start web-standalone