LoginSignup
2
0

More than 3 years have passed since last update.

Vuetifyの初期画面を表示するまで

Last updated at Posted at 2020-11-21

マテリアルデザインフレームワークvuetifyの
半日ぐらいかかったので未来の自分へメモ

Windows版PyCharmでのセットアップ

  • Node.jsインストール

Windows 10へNode.jsをインストールする - Qiita
そのままインストールする

  • PyCharmのVue.jsプラグインのインストール

image.png

  • New Project Locationのプロジェクト名を任意のものに変更してCreateボタン実行

image.png

  • Terminal

ターミナルウィンドウからnpm install --save-dev @vue/cli実行

image.png

ターミナルウィンドウから.\node_modules\.bin\vue add vuetify実行

image.png

WARN There are uncommitted changes in the current repository, it\'s recommended to commit or stash them first.
? Still proceed? (y/N)y ←yでEnter

image.png

Default (recommended)を選択してEnter

image.png

Shift+F10実行してブラウザでアクセス

image.png

Linux上でのセットアップ

$ npm init --yes
$ npm install --save-dev @vue/cli
$ ./node_modules/.bin/vue create --default .
 ? Generate project in current directory? (Y/n)Y ←YでEnter
$ ./node_modules/.bin/vue add vuetify
 WARN  There are uncommitted changes in the current repository, it\'s recommended to commit or stash them first.
 ? Still proceed? (y/N)y  ←yでEnter
 ? Default (recommended)  ←そのままEnter
$ cat vue.config.js
module.exports = {
  "transpileDependencies": [
    "vuetify"
  ],
  devServer: {
    port: 8080,
    disableHostCheck: true,
  },
}
$ npm run serve

$ npm run build

Flaskとの結合は以下参照

Vue.js + FlaskでWebアプリケーション制作 - herokuにデプロイするまで - - Qiita

画面変更は以下参照

Vuetifyに入門する - Qiita

2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0