LoginSignup
0
0

More than 5 years have passed since last update.

静的なLPのプロジェクトにyarnでfirebase-toolsをインストールして公開するまで

Posted at

はじめに

今回は作成した静的なLPのプロジェクトにyarnでfirebaseをインストールして公開するまでをやろうと思います。

プロジェクトの作成

とりまディレクトリ作成(プロジェクト)

mkdir sample-lp

作成したディレクトリに移動

cd sample-lp

※適当にLPを取ってくる&適宜編集

Firebaseのインストール

yarnのインストール

brew install yarn

firebase-toolsのインストール(グローバル環境にインストール)

yarn global add firebase-tools

firebaseにログイン

firebase login

※ブラウザでログイン画面がポップアップ表示される

firebaseプロジェクトとヒモ付

https://console.firebase.google.comでGUIポチポチでプロジェクトを作成

sample-lpをプロジェクト名とする

作ったプロジェクトと紐付ける

firebase use --add

GUIで作成したプロジェクトを選択する

サーバの起動

firebase serve

デプロイ

firebase deploy

https://sample-lp.firebaseapp.com/にアクセスしてLPが表示されることを確認

※適宜自前のドメインを紐付ける

おわりに

簡単に備忘録として書きました。
参考までに。

ひろたつ

0
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
0
0