A trusted CGI web portal. The portal embedded to the main binary.
If you decided to work with the UI side, please see instructions bellow.
Main principles:
- Everything should be available local: fonts, themes whatever else should be included in a bundle. Keep in mind environments with a heavy restricted internet.
- Every API call can take a while and could return an error: show progress/loader during operation, use
console.errorfor errors. There is a global wrapper that will showconsole.errorto user as pop-up. - Main flow is: create function/app/lambda -> edit content -> run. Everything else should be on sides and should not stop user.
- No absolute path at-all: keep in mind, that platform could be launched behind one or several reverse proxies.
Use
import {baseURL} from './apias source of truth: it uses development environment variable or window location to determinate API URL. - Use Git LFS for any binary files if needed. By-default,
src/staticmarked as LFS dir. SVG is not a binary =). - The project called Trusted CGI and it means the developers of lambda/apps trusted, so no need for paranoid checks of user input, however, be ready for common mistakes and help as much as possible.
npm installquasar devBe sure, that you have a running trustued-cgi binary in a background with --dev mode.
The dev endpoint could be overrided in quasar.conf.js in API_URL: JSON.stringify('http://127.0.0.1:3434/'),
but please do not commit it.
quasar buildDo not commit production build: it will be automatically built by CI.