GagnDeep / sveltefire-webpack-hotreload

Template for sveltefire with webpack and hotreloading enabled

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A starter template for SvelteFire.

1. Degit the Template

npx degit GagnDeep/sveltefire-webpack-hotreload fireapp-webpack
cd fireapp
npm install

2. Get a Firebase Project

Create a Firebase project at https://firebase.google.com/ and grab your web config:

Opt-in to the following services from the Firebase console to run the demo.

  1. Anonymous Login under authentication -> sign-in method
  2. Cloud Firestore under database. Make sure it's in test mode (or provide write access to the posts/ collection using Security Rules).

3. Update the Firebase Config

Open firebase.js and replace the firebaseConfig prop with your Firebase project credentials.

let firebaseConfig = {
  // Insert Firebase Credentials here
};

Run it:

npm run dev

You should see something like this:

sveltefire demo app

Forked from the official --> sveltejs/template

About

Template for sveltefire with webpack and hotreloading enabled


Languages

Language:JavaScript 45.4%Language:HTML 42.6%Language:CSS 12.0%