Make a .env
file in the root directory. Put the below line:
API_BASE_URL=https://reqres.in
Make sure to install the dependencies:
# yarn
yarn install
# npm
npm install
# pnpm
pnpm install --shamefully-hoist
npm run dev
Start the development server on http://localhost:3000
Build the application for production:
npm run build
Locally preview production build:
npm run preview
Checkout the deployment documentation for more information.
- Routing example
- How to components create and declare.
- Custom Single Fetch instance using useFecth hook and how to handle GET, POST, PUT, PATCH operations
- Composables example
- Pages Layouts declaration and hide/show layout according to route change
- Route Middleware example
- Typescript support
- Internationalization Support (using @nuxtjs/i18n)
- Theming support (using @nuxtjs/color-mode)
- State management (Pinia using @pinia/nuxt)
- SSR, SSG, CSR, SWR page example
- Basic example of custom directive and plugin
- Sass Support
- Basic Error handling
- Charjs example using vue components. (using vue-chartjs and chart.js)
- Reactiviy and ref example with form component.
- Form component validation (using @vuelidate/core)
- Integrated eslint, prettier, commitlint, husky and lint staged
Look at more the nuxt 3 documentation to learn more.