Table of contents of series of articles (click to view)
Article directory
Preface
At the beginning of this article, we will start to create our own project, configure and develop it.
1. Vite creation project
1. Create
Enter this computer on a Windows computer, select the folder where you want to create the project, right-click to open the terminal with git bash or open cmd, or use the terminal on Mac to enter the folder where the project is created.
使用 NPM:
$ npm create vite@latest
使用 Yarn:
$ yarn create vite
使用 PNPM:
$ pnpm create vite
2. Specific steps
1. Enter the project name
2. Select vue
3. Select TypeScript
4. Created successfully
5. You can also use shortcut commands to create it directly
6. Enter the project folder
7、npm install / yarn
8、npm run dev / yarn dev
2. GitHub upload
1. Create an account
Official website:https://github.com/
Register your own github account through Sign Up
2. Create a warehouse
3. First submission
Follow the documentation commands to associate the local project with the remote repository and submit the code
git init
git add .
git commit -m "init"
git remote add origin https://github.com/SmallTeddy/testing-web.git
git push -u origin main
After submission, refresh the warehouse interface to confirm that the code submission is successful.
Summarize
This article introduces how to use Vite tools to create your own vue project