@deegital/nuxt-trustup-io-app-init
v0.0.7
Published
Nuxt modules initiator for our nuxt apps
Downloads
1
Keywords
Readme
#nuxt-trustup-io-app-init
Nuxt modules initiator for our nuxt apps
Installation
yarn add @deegital/nuxt-trustup-io-app-init
Add @deegital/nuxt-trustup-io-app-init
to the modules
section of nuxt.config.ts
export default defineNuxtConfig({
modules: [
'@deegital/nuxt-trustup-io-app-init',
"@deegital/nuxt-trustup-io-auth",
"@deegital/nuxt-trustup-io-translations",
],
trustupIoAppInit: {
// @TODO
}
})
- Add runtimeconfig
runtimeConfig: {
public: {
authTrustupIoUrl: "",
appName: "",
},
},
- Add environment variable related to your app
NUXT_PUBLIC_AUTH_TRUSTUP_IO_URL=https://auth.trustup.io
NUXT_PUBLIC_APP_NAME=trustup-pro
- Add the layout for the loader
<NuxtLayout name="app-init-layout">
<NuxtPage />
</NuxtLayout>
That's it! You can now use nuxt-trustup-io-app-init
in your Nuxt app ✨
Usage
// @TODO
Development
./cli bootstrap #bootstrap project
./cli start #start project
./cli stop #stop project
./cli restart #restart project