@nuxtjs/tailwindcss
write a css-free application without pain. (rtl
is supported)vue-tippy
a vue tooltip handler based ontippy.js
.vue-izitoast
a good Toaster or SnackBar forvue
(we usedvue-izitoast2
for typescript support)vue-slick-carousel
a carousel or slider that is rendered in server-side (SSR). (we usedvue-slick-carousel
for handling localization correctly)draggable-nuxt-link
an internal plugin for preparing a good UXnuxt-link
while sliding carousel. (available in theplugins/draggable-nuxt-link
folder, you can use it by<DNuxtLink>
tag in your project)
vue-select
a vue dropdownv-aspect-ratio
vue-based aspect-ratio handler. (Highly usable for layout of images withposition: absolute
style)
@nuxtjs/auth-next
handling authentication.@casl/ability
handling authorization.
nuxt-i18n
multi-language support.moment-jalaali
persian date support.vue-persian-datetime-picker
multi-language date-picker.vue-slick-carousel-rtl
a carousel or slider SSRtailwindcss-rtl
support tailwindrtl
.
axios
a substitution offetch
to handling network requests.- GraphQL support:
@nuxt/apollo
communicating with GraphQL (integrated withaxios-fetch
).@vue/apollo-composable
use@nuxt/apollo
in Composition-API context.
vee-validate
form validation (with i18n activated)
eslint
linting and syntax control (with typescript support)@nuxt/typescript-build
using typescript in the project bylang="ts"
direction. (Note: At the moment"@nuxt/typescript-build@^2.1.0
is consistent withtypescript@~4.2
, so this package contains the ~4.2 version)
vuex
is activated by an emptyindex.js
file in thestore/
directory. (It's important for some features likeredirecting
)- Also
vuex-persist
is 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 thestore
directory.
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 generate
If you want to suggest some new packages, you can open a new issue.