- Create a Firebase project in the Firebase console.
- Install dependencies:
yarn
- Login to Firebase:
yarn firebase login
- Initialize Firebase:
firebase init
- Select "Hosting: Configure and deploy Firebase Hosting sites" and press Enter.
- Select your Firebase project.
- Enter "dist" as your public directory.
- Configure as a single-page app: No.
- Install dependencies with Yarn: No.
- Deploy your app:
yarn deploy
- Your app should now be live at
https://<PROJECT_ID>.firebaseapp.com
.
- Run
yarn start
to start the development server. - Your app should now be live at
http://localhost:3000
.
Run yarn deploy
to deploy it to Firebase.
If you only want frontend part to be deployed (without Cloud Functions), run yarn deploy --only hosting
. It will be much faster.