How to start Quasar app manually? #13725
Replies: 2 comments 8 replies
-
u can create a boot who verifies if the API is up and running. import { axios } from 'axios'
import { boot } from 'quasar/wrapper'
export default boot(async () => {
const api = axios.create({ /*...*/ })
let backoff = 500
do {
try {
await api.get('wealth')
break;
} catch {
await new Promise(resolve => setTimeout(resolve, backoff))
backoff *= 1.5
}
} while (true)
}) on better, learn docker and make your app depends on your api. |
Beta Was this translation helpful? Give feedback.
-
Maybe I'm wrong, but i think u trying to build a app with blazor, unfortunally i never tried that myself, and personally i don't recommend that approach. In your place, i would use the Dotnet CLI only to develop/build the backend (gPRC, REST or GraphQL). But if u really wanna to stick with Blazor, maybe u would look for help in the Blazor community. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am looking for a solution to start Quasar Manually. The reason is some of the api function needs to be initialized first before quasar boot. Does anybody know if it's possible??
something like
quasar.config.js
(note, this is a dummy setting):and then
my.api.initializer.js
(note, this is a dummy function):As a workaround I can try to load the js into DOM, but in my opinion this would be very dirty approach:
By the way, I am not using Capasitor or Electron. Just pure PWA which goes into MAUI web container.
Beta Was this translation helpful? Give feedback.
All reactions