Giter Club home page Giter Club logo

vue-handson-stopwatch's Introduction

vue-handson-stopwatch

Kamakura MokMok Hack #56 「Vue を使ってストップウォッチをつくるハンズオン」用のリポジトリです。

環境のセットアップ

  • ⚠️ セットアップは基本 MacOS 向けです。
  • ⚠️ すでに導入してるよって方はスキップしてください。

HomeBrew のインストール

Terminal で brew --version を叩いて何もでてこなければ以下を叩いて HomeBrew 入れましょう。

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

NodeBrew で Node を入れる

今回は NodeBrew を使って Node.js のバージョン管理(Node.js 自体のバージョン指定)を行います。 nodebrew と叩いて何もでなければ入れていきましょう。 ※他のバージョン管理を使っても良いです。

brew install nodebrew

Node.js のバージョンを合わせる

トラブルを避けるために今回は以下のバージョンを使います。

nodebrew install v10.15.3

入れたらバージョンを指定します。

nodebrew use v10.15.3

Vue/React のセットアップ

yarn

yarn -v と入れて何もでなければ入れましょう。 これらは開発環境を作る上で必要です。

npm i -g yarn

Vue

yarn -v&&vue --version と入れて何もでなければ入れましょう。 これらは開発環境を作る上で必要です。

npm i -g @vue/cli

プロジェクトの説明

リポジトリの構成については次の通りです。

react-vue-handson/
    ├ vue-stopwatch/ … Vueのプロジェクト
        ├ src/ … ソースコード
            ├ components … コンポーネント群
            ├ vuex … 状態管理関連
    ├ react-stopwatch/ … Reactのプロジェクト
        ├ src/ … ソースコード
            ├ components … コンポーネント群
            ├ redux … 状態管理関連

プロジェクトを作る

今回はすでにプロジェクトの基本セットは入れています。コンポーネントや状態管理の実装のハンズオンを行いたいので、プロジェクトを作成する方法を知りたい方は以下をお試しください。

vue create {プロジェクト名}

選択肢にチェックを入れたい時は space キーを押しましょう。 TypeScript を使いたくないという方は Check the features needed for project の時に TypeScript にチェックをいれない様にします。

おまけ

React + TypeScript

React はこれで開発環境つくれます。

npx create-react-app react-stopwatch --typescript

※TypeScript 使わない時は --typescript を外すと良いです。でも型の恩恵をうけていきましょー!

vue-handson-stopwatch's People

Contributors

tyshgc avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.