Full Featured iOS & Android PWA Apps with Nuxt.js and Framework7
Full Featured iOS & Android PWA Apps with Nuxt.js and Framework7
Nuxt7 integrates universal nuxt.js applications with Framework7-Vue
to rapidly create efficient and feature-reach PWA mobile applications with help of pwa-module. Production builds can be statically hosted or running offline.
Use the command below to create a new app using starter template:
> npx sao nuxt-community/nuxt7 nuxt7-app
Latest version is always published Here. (Thanks to Surge and CloudFlare for hosting)
🔦 Lighthouse tests: Mobile Regular 3G
Add options in framework7 section inside nuxt.config.js file.
| Option | Type | Default | Description |
|---|---|---|---|
css |
Boolean | true |
Include Framework7 styles (Useful to disable and provide your own) |
rtl |
Boolean | false |
Enable RTL layout |
f7Icons |
Boolean | true |
Include Framework7 Icons (IOS) |
mdIcons |
Boolean | true |
Include MD Icons |
pwa |
Boolean | true |
Enable @nuxtjs/pwa module |
routes |
Object | true |
Route overrides (see below) |
mode |
String | hash |
Router mode. Can be hash or history |
view |
Object | defaults | Options passed to root view of framework7 |
build |
Object | framework7 defaults | Framework7 build config used for customizing less variables |
themeColor |
String | undefined |
If specified, automatically sets all global theme colors to this value |
Routes are auto generated using pages directory structure.
However if you need to make more customization (Like adding routable tabs) this option may be used.
Example: (nuxt.config.js)
framework7: {
routes: {
'tabs-routable': {
tabs: [
{ path: "/", id: "tab1" },
{ path: "/tab2/", id: "tab2" },
{ path: "/tab3/", id: "tab3" },
]
}
}
}
# Fork and clone git@github.com:nuxt-community/nuxt7.git
# Install dependencies
yarn install
# Start development server (kitchen sink)
yarn dev
MIT - Nuxt Community - Pooya Parsa