ncamaa / q2f9

A starter kit for Quasar V2 and Firebase V9

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

๐Ÿ’ซ Quasar v2 + ๐Ÿ”ฅ Firebase v9

This is a full-stack boilerplate, leveraging the power of Quasar v2, Firebase v9 (including Firebase Functions), Typescript, and Vite.

๐Ÿ“ฆ Install the Dependencies

Use the following commands to install necessary dependencies:

yarn
# or
npm install

๐Ÿ”ง Start the App in Development Mode (hot-code reloading, error reporting, etc.)

To start the app in development mode, run the following command:

quasar dev

๐Ÿ•ต๏ธโ€โ™‚๏ธ Lint the Files

Keep your code tidy and consistent by running:

yarn lint
# or
npm run lint

๐ŸŽจ Format the Files

Ensure your files are formatted correctly by using:

yarn format
# or
npm run format

๐Ÿ—๏ธ Build the App for Production

Prepare your app for deployment with this command:

quasar build

โš™๏ธ Customize the Configuration

For customizing your configuration, refer to Configuring quasar.config.js.

๐Ÿ–ฅ๏ธ Backend

๐Ÿ“š Before You Begin

It's advisable to learn more about the Firebase Emulator Suite and Firebase Functions before proceeding. Refer to Introduction to Firebase Local Emulator Suite and Use TypeScript for Cloud Functions.

๐Ÿš€ Getting Started

To initiate a local backend server emulator that includes Firebase Authentication, Firestore, Firebase Storage, and Firebase Functions, you need to first install the Firebase CLI. If it's not installed, run the following command:

npm install -g firebase-tools
# or
yarn global add firebase-tools

Next, log into Firebase. Run this command and follow the prompts:

firebase login

Then, initialize your Firebase project. Make sure you're in the root directory of your project and run:

firebase init

During the setup process, remember to select Firestore, Functions, Storage, and Authentication.

After the initialization, start your local backend server emulator:

firebase emulators:start

This starts a local emulator for Firestore, Firebase Authentication, Firebase Storage, and Firebase Functions.

Don't forget to replace the Firebase configuration object in your app with your Firebase project's configuration object, which you can find in the Firebase Console under Project Settings.

๐Ÿš€ Deploy to Firebase

Before deploying your app to Firebase Hosting, build it for production as shown above:

quasar build

Next, deploy it using the Firebase CLI:

firebase deploy

This command deploys your app as well as any Firebase Functions you've written.

Note: Before deploying, make sure you've run firebase init and selected "Hosting" during the setup process.

๐Ÿค Contributing

We warmly welcome pull requests and issues, whether they're for adding a feature or reporting a bug. Please ensure you follow our contributing guidelines.

๐Ÿ“ License

This project is licensed under the MIT License. For more details, see the LICENSE file.

About

A starter kit for Quasar V2 and Firebase V9

License:MIT License


Languages

Language:Vue 39.7%Language:JavaScript 34.3%Language:TypeScript 20.2%Language:HTML 3.0%Language:SCSS 2.9%