-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Nuxt 3 - Pinia - Vuetify] Feat: Update README #1229
Merged
Merged
Changes from 2 commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,86 @@ | ||
# Nuxt 3 Minimal Starter | ||
# nuxt3-pinia-vuetify starter kit | ||
|
||
Look at the [Nuxt 3 documentation](https://nuxt.com/docs/getting-started/introduction) to learn more. | ||
This starter kit features **Nuxt.js 3**, **Pinia**, and **Vuetify**. | ||
|
||
## Setup | ||
## Table of Contents | ||
|
||
Make sure to install the dependencies: | ||
- [Overview](#overview) | ||
- [Tech Stack](#tech-stack) | ||
- [Included Tooling](#included-tooling) | ||
- [Example Code](#example-code) | ||
- [Installation](#installation) | ||
- [CLI (Recommended)](#cli-recommended) | ||
- [Manual](#manual) | ||
- [Commands](#commands) | ||
|
||
```bash | ||
# yarn | ||
yarn install | ||
## Overview | ||
|
||
# npm | ||
npm install | ||
### Tech Stack | ||
|
||
# pnpm | ||
pnpm install | ||
``` | ||
- [Nuxt.js v3.x](https://nuxt.com/) | ||
- [Vue v3.x](https://vuejs.org/) | ||
- [Pinia v2.x](https://pinia.vuejs.org/) | ||
- [Vuetify](https://vuetifyjs.com/) | ||
|
||
### Included Tooling | ||
|
||
- [Typescript](https://www.typescriptlang.org/) - Type checking | ||
- [ESLint](https://eslint.org/) - Code linting | ||
|
||
> **Note**: We didn't include Storybook in this starter kit because it is not yet compatible with Nuxt.js 3. We will add it back in when it is. Likewise we didn't include tests because the testing story for Nuxt.js 3 is still being worked out and it's not production ready. | ||
|
||
### Example Code | ||
|
||
In this `starters/nuxt3-pinia-vuetify` directory you will find the `CounterExample` and `FetchExample` directories in the components. | ||
|
||
The `CounterExample` directory component uses `Pinia` to control the state of the component. The directory contains the following files: | ||
|
||
## Development Server | ||
- CounterExample.vue | ||
|
||
Start the development server on http://localhost:3000 | ||
The `FetchExample` directory component uses `useLazyFetch` to fetch data from the example `hello endpoint`. The directory contains the following files: | ||
|
||
- FetchExample.vue | ||
|
||
## Installation | ||
|
||
### CLI (Recommended) | ||
|
||
```bash | ||
npm run dev | ||
npm create @this-dot/starter -- --kit nuxt3-pinia-vuetify | ||
``` | ||
|
||
## Production | ||
|
||
Build the application for production: | ||
or | ||
|
||
```bash | ||
npm run build | ||
yarn create @this-dot/starter --kit nuxt3-pinia-vuetify | ||
``` | ||
|
||
Locally preview production build: | ||
- Follow the prompts to select the `nuxt3-pinia-vuetify` starter kit and name your new project. | ||
- `cd` into your project directory and run `yarn`. | ||
- Run `yarn dev` to start the development server. | ||
- Open your browser to `http://localhost:3000` to see the included example code running. | ||
|
||
### Manual | ||
|
||
This requires a download of the entire starter.dev repository and extraction of the `nuxt3-pinia-vuetify` kit from the starters directory. | ||
|
||
```bash | ||
npm run preview | ||
git clone https://github.com/thisdot/starter.dev.git | ||
``` | ||
|
||
Check out the [deployment documentation](https://nuxt.com/docs/getting-started/deployment) for more information. | ||
- Copy and rename the `starters/nuxt3-pinia-vuetify` directory to the name of your new project. | ||
- `cd` into your project directory and run `yarn`. | ||
- Run `yarn dev` to start the development server. | ||
- Open your browser to `http://localhost:3000` to see the included example code running. | ||
|
||
## Commands | ||
|
||
- `yarn dev` / `yarn start` - Starts the development server. | ||
- `yarn build` - Creates a `.output` directory with all your application, server and dependencies ready for production. | ||
- `yarn preview` - Starts a server to preview your Nuxt application after running the build command. | ||
- `yarn generate` - Pre-renders every route of your application and stores the result in plain HTML files that you can deploy on any static hosting services. The command triggers the `nuxi build` command with the `prerender` argument set to `true` | ||
- `yarn postinstall` - Creates a `.nuxt` directory in your application and generates types. This can be useful in a CI environment or as a `postinstall` command in your `package.json`. | ||
- `yarn lint:js` - Runs ESLint on the project. | ||
- `yarn lint:prettier` - Runs Prettier on the project. | ||
- `yarn lint` - Runs both `yarn lint:js` and `yarn lint:prettier`. | ||
- `yarn lint:fix` - Runs ESLint and Prettier on the project and fixes any errors. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.