SvelteFire-with-Routify

Sveltefire With Routify

A starter template for SvelteFire.

1. Degit the Template

npx degit codediodeio/sveltefire-template fireapp
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 App.svelte 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:

Forked from the official --> sveltejs/template

Top categories

Loading Svelte Themes