quick start for vueJS and nextJS

main
Yik Teng Hie 5 years ago
parent cf1303db13
commit 6c8a473bd7

@ -3,3 +3,24 @@
[Home](../../README.md)
[Reference](https://nextjs.org/learn/basics/create-nextjs-app)
Bootstrap a project
```sh
$ npx create-next-app nextjs-blog --use-npm --example "https://github.com/vercel/next-learn-starter/tree/master/learn-starter"
```
Launch the server
```sh
$ cd nextjs-blog
$ npm run dev
> learn-starter@0.1.0 dev C:\dev\playground\nextjs-blog
> next dev
ready - started server on http://localhost:3000
```
Browse [localhost](http://localhost:3000). Next.js page will be displayed

@ -3,3 +3,45 @@
[Home](../../README.md)
[Reference](https://vuejs.org/)
Boostrap a project. Select the default
```sh
$ vue create myapp-vue
Vue CLI v4.5.9
┌──────────────────────────────────────────┐
│ │
│ New version available 4.5.9 → 4.5.10 │
│ Run npm i -g @vue/cli to update! │
│ │
└──────────────────────────────────────────┘
? Please pick a preset: (Use arrow keys)
> Default ([Vue 2] babel, eslint)
Default (Vue 3 Preview) ([Vue 3] babel, eslint)
Manually select features
```
Run the server
```sh
$ cd myapp-vue
$ npm run serve
DONE Compiled successfully in 2691ms 4:51:22 PM
App running at:
- Local: http://localhost:8080/
- Network: http://192.168.0.132:8080/
Note that the development build is not optimized.
To create a production build, run npm run build.
```
Browse [localhost](http://localhost:8080). You should see Vue page.

Loading…
Cancel
Save