@nuxtjs/tailwindcsswrite a css-free application without pain. (rtlis supported)vue-tippya vue tooltip handler based ontippy.js.vue-izitoasta good Toaster or SnackBar forvue(we usedvue-izitoast2for typescript support)vue-slick-carousela carousel or slider that is rendered in server-side (SSR). (we usedvue-slick-carouselfor handling localization correctly)draggable-nuxt-linkan internal plugin for preparing a good UXnuxt-linkwhile sliding carousel. (available in theplugins/draggable-nuxt-linkfolder, you can use it by<DNuxtLink>tag in your project)
vue-selecta vue dropdownv-aspect-ratiovue-based aspect-ratio handler. (Highly usable for layout of images withposition: absolutestyle)
@nuxtjs/auth-nexthandling authentication.@casl/abilityhandling authorization.
nuxt-i18nmulti-language support.moment-jalaalipersian date support.vue-persian-datetime-pickermulti-language date-picker.vue-slick-carousel-rtla carousel or slider SSRtailwindcss-rtlsupport tailwindrtl.
axiosa substitution offetchto handling network requests.- GraphQL support:
@nuxt/apollocommunicating with GraphQL (integrated withaxios-fetch).@vue/apollo-composableuse@nuxt/apolloin Composition-API context.
vee-validateform validation (with i18n activated)
eslintlinting and syntax control (with typescript support)@nuxt/typescript-buildusing typescript in the project bylang="ts"direction. (Note: At the moment"@nuxt/typescript-build@^2.1.0is consistent withtypescript@~4.2, so this package contains the ~4.2 version)
vuexis activated by an emptyindex.jsfile in thestore/directory. (It's important for some features likeredirecting)- Also
vuex-persistis activated with cookie storage:- for working with the vuex states in the server,
- and persisting the data after reloading the page in the client.
- The config file is
~/plugins/vuex-persist.js. - If you want to restrict the persistence to only some specific vuex modules,
you have to uncomment the
modules:property in the configuration file and add your module name that you used before in thestoredirectory.
For development and deployment, two local addresses http://localhost:8000/api and http://localhost:8000/graphql are configured as the default endpoints.
To change these values you can use .env file.
# write this line in your terminal or cmd
git clone https://github.com/Iran-110/nuxt-boilerplate.git# install dependencies
$ yarn install
# serve with hot reload at localhost:3000
$ yarn dev
# build for production and launch server
$ yarn build
$ yarn start
# generate static project
$ yarn generateIf you want to suggest some new packages, you can open a new issue.