A boilerplate to quickly set up Yarn workspaces monorepo with:
- Nuxt.js app
- Wrapper for Nuxt.js' axios
- Custom components library
- Universal mode
- Bootstrap Vue
- @nuxtjs/axios
- @nuxtjs/auth: local, google, facebook, instagram
- nuxt-i18n
- Ready for VS Code debugging
- Browser Geolocation API support
- Global event hub listener
Wrapper for Nuxt.js' axios instance. Plugin in packages/app1/plugins/api.js
injects wrapper as $api into Vue instances and context.
See packages/api/index.js
for usage info.
Custom components based on Bootstrap Vue that might be shared across multiple projects.
Extends plugin:vue/recommended
and eslint:recommended
.
- Rename
.env.dist
file inpackages/app1/
to.env
and provide your own values. - Rename
nuxt-yws
in the rootpackage.json
with whatever your project is. - Rename
@nuxt-yws/app1
,@nuxt-yws/api
,@nuxt-yws/shared-components
in all other package.json files - Change
app1
with whatever name you give it in.vscode/launch.json
- Run
yarn
- Upgrade bootstrap-vue to 2.15.0
- Add moment, qs, sass-loader,
- App's scss file in
assets/styles
- Add mixins:
- BasePage - to extend all pages
- EventHubListener - provides access to global event hub
- Templates and plugin for auth: local, facebook, google, instagram
- Plugin geo.client.js (+vuex module geo.js) - wrapper for browser Geolocation API
- Sample vuex module lookups.js for static backend data like country/cities list