-
Notifications
You must be signed in to change notification settings - Fork 2
Tutorial Project Setup
Dae Houlihan edited this page Nov 11, 2024
·
2 revisions
Warning
This section is under construction. Some of this information is out of date with the latest release of the template. Use with caution.
This guide walks through setting up your local development environment.
- Create and enter project directory:
mkdir exampleproj
cd exampleproj
- Initialize project:
corepack enable
yarn init -2
yarn set version stable
Accept the defaults by pressing enter until finished.
- Install Firebase tools locally:
yarn add --dev firebase-tools
- Login to Firebase:
yarn firebase login
- Enable web frameworks support:
yarn firebase experiments:enable webframeworks
- Initialize Firebase project:
yarn firebase init
- Select these options when prompted:
◉ Firestore: Configure security rules and indexes files for Firestore
◉ Hosting: Configure files for Firebase Hosting
-
Select "Use an existing project" and choose your project
-
Accept default file names
-
For web frameworks:
- Say 'yes' to using a web framework
- Use default folder for web application root
- Select 'Vite'
- Select 'TypeScript'
- Choose your region
- Say 'no' to automatic builds (for this tutorial)
- Enter the hosting directory:
cd hosting
- Install essential dependencies:
yarn add --dev typescript vite
yarn add firebase
- Install development packages:
yarn add --dev "@typescript-eslint/eslint-plugin" autoprefixer browserslist-to-esbuild eslint-plugin-import postcss tailwindcss vite-plugin-html
Continue to Tutorial/Adding Firebase to implement Firebase functionality.