A07svelte-native-firestore-rest Svelte Themes

A07svelte Native Firestore Rest

Simple firestore rest svelte-native implementation

Svelte native Firestore

This is a simple App for IOS/Android that connects to firebase/firestore with a fetch call to the build in REST API.

It uses the svelte-native framework to build a native application. Svewlte-native is build on top of Nativescript, so you need to go through the setup guide there in order to install the TNS CLI tools.

Set up

npm install 
ths run [ios|android]

Project structure

This is a single page application. Everything is handled in app/App.svelte. This file...

  • Fetches data from firestore in the svelte onMount function
  • uses a scrollView to display the list of items
  • you are not able to do anything further with the items - i.e delete, update og add - so the example just serves as a demo of how you vcan include firestore data in a simple app

Top categories

Loading Svelte Themes