https://github.com/xcraft-inc/goblin-desktop-web
https://github.com/xcraft-inc/goblin-desktop-web
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/xcraft-inc/goblin-desktop-web
- Owner: Xcraft-Inc
- Created: 2022-05-13T13:50:23.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2024-09-02T14:23:55.000Z (9 months ago)
- Last Synced: 2025-01-14T05:35:17.385Z (5 months ago)
- Language: JavaScript
- Size: 14.6 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Goblin Desktop Web
Serve and deploy the web portal for goblin-desktop.
This module work greats if you already have a goblin-desktop based app.Your app config must use a profile configuration with a mandate key.
Your app must provide the configureNewDesktopSession quest.## Usage:
Use the builder to configure your webapp service file.
The service file must be named according your appName,
ex: if your appName is myapp, create a myapp-web.js service file:```myapp-web.js
exports.xcraftCommands = function () {
const builder = require(`goblin-desktop-web`);
const config = {
appName: 'myapp',
themeContexts: ['default'],
localPort: 9080,
};
return builder(config);
};
```Boot the webapp when you init your app:
```service.js
//init quest:
yield quest.cmd('myapp-web.boot');
```