GithubHelp home page GithubHelp logo

lgs / svelte-firebase Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jorgegorka/svelte-firebase

0.0 2.0 0.0 2.85 MB

A template to help you start developing SPAs with Svelte and Firebase.

JavaScript 25.54% CSS 0.23% HTML 74.23%

svelte-firebase's Introduction

Svelte - Firebase

A free template that you can use to create new applications using Svelte and Firebase.

You can see a live demo here: https://svelte-firebase-template.web.app/

Features

  • Powerfull routing system with nested layouts.
  • Public and Private sections
  • Form validation
  • Preconfigured pages for Home, Login, Signup and more...
  • Secure your database with Firebase rules
  • Fully resposive theme
  • And many more...

Usage

Grab a copy of the template and install the dependencies:

git clone https://github.com/jorgegorka/svelte-firebase my-app-name
cd my-app-name && yarn install

Add your Firebase configuration info to src/config/settings.js

If you don't have a Firebase project you can create one in the Firebase website

Activate cloud firestore, storage and hosting in the Firebase console

const config = {
  apiKey: '',
  authDomain: '',
  databaseURL: '',
  projectId: '',
  storageBucket: '',
  messagingSenderId: ''
}

Update .firebaserc with your project ID

Install all the dependencies required by functions.

cd functions
npm i

Now we want to deploy all the rules, indexes and cloud functions to Firebase.

yarn deploy

This first first deployment will setup Firebase so everything is ready for development.

Development

Launch the development server

yarn dev

Visit http://localhost:5000

To add new pages edit the routes files at src/lib/routes

There are public and protected routes. Protected routes require the visitor to be authenticated before accesing them.

There are two complete CRUD examples: Teams and Employees.

Deployment

Rembember to activate cloud firestore, storage and hosting in the Firebase console before deploying for the first time.

yarn deploy

Enjoy

Contribute

Your comments, suggestions and improvements are very welcome.

Credits

Svelte-Firebase has been created by Jorge Alvarez.

License

Released under MIT license

svelte-firebase's People

Contributors

jorgegorka avatar tomatrow avatar dependabot[bot] avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.