https://github.com/gitpod-io/theia-app
The Theia running in Gitpod
https://github.com/gitpod-io/theia-app
Last synced: 8 months ago
JSON representation
The Theia running in Gitpod
- Host: GitHub
- URL: https://github.com/gitpod-io/theia-app
- Owner: gitpod-io
- Created: 2021-03-01T09:49:41.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-11-21T23:34:02.000Z (over 4 years ago)
- Last Synced: 2025-03-29T11:34:32.790Z (about 1 year ago)
- Language: TypeScript
- Size: 560 KB
- Stars: 5
- Watchers: 4
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Gitpod Extension
The example of how to build the Theia-based applications with the gitpod-extension.
## Getting started
### Building the extension and app
yarn
yarn build
### Starting the app
cd app
yarn start
Open http://localhost:3000 in the browser.
## Developing
Watching
yarn watch
Start watching of the browser example.
cd browser-app
yarn watch
Launch `Start Browser Backend` configuration from VS code.
Open http://localhost:3000 in the browser.
## Building images
Currently there are two types of Docker images: regular (theia/Dockerfile) and debug (theia/build/debug/Dockerfile). They can be build via their `build-image.sh` scripts.
For pulling from private npmjs.org repos there is a `docker.npmrc` file with the needed auth_token for typefox-team.
See top-level README file for more yarn commands relared to building docker images.
## Publishing gitpod-extension
The user `typefox-team` can publish and retrieve the packages in `@typefox` scope.
Login.
npm login
Publish packages with lerna to update versions properly across local packages, [more on publishing with lerna](https://github.com/lerna/lerna#publish).
npx lerna publish
## Expected Envs.
The gitpod extension is designed to be deployed with a gitpod workspace backend, where the following envs are defined:
- GITPOD_HOST (the url prefix to call in order to signal activity)
- GITPOD_WORKSPACE_ID ( workspaceid is simply appended to the host)
- GITPOD_INTERVAL (the interval for doing keep alive requests in milliseconds, defaults to '10000'. )