Giter Site home page Giter Site logo

ashotik / stenciljs-firebase Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ashot72/stenciljs-firebase

0.0 1.0 0.0 6.97 MB

Stenciljs Firebase Authentication (SignIn/SignUp) Modal and Firebase Database Tree Renderer Web Components

License: MIT License

JavaScript 22.93% TypeScript 43.92% HTML 15.59% CSS 11.65% Vue 5.91%

stenciljs-firebase's Introduction

I built two Stencil.js web components. The first one is Firebase Authentication Modal (sign in and sign up) web component and the second one is Firebase Database Tree Renderer web component. One great advantage is that a web component allows you to encapsulate logic and a user interface in one custom HTML tag, which can be used across our page or even reuse across multiple projects. We just take the JavaScript file and drop it into any other project.

We can even have a project, say, in Angular, React or Vue and use the same web component in all of them. That is a great advantage as normally we would not be able to share React components with Angular or Vue for example. We can also publish our component or a set of components even to npm and then install it into any project that we want to use it with npm install command. We are going exactly to do that; publish our components to npm and use it both in Angular, React and Vue projects.

Stencil.js gives us a way nicer syntax and lot of convenience features which we can use to write web components in a more convenient and error safe way using JavaScript and also Typescript. If you are familiar with React, Stencil uses JSX and the same principles for displaying data.

Our two Stencil.js web components can talk to each other even without writing a single code to the page they have been added.

The app is hosted on Firebase https://stencil-firebase-618cb.web.app

To get started.

       Clone the repository

       git clone https://github.com/Ashot72/stenciljs-firebase
       cd stenciljs-firebase

       # installs dependencies
       npm install

       # to run locally
        npm start

       # To build the component for production
        npm run build

       # Angular
         cd projects/angular
         npm install
         npm start

       # React
         cd projects/react.js
         npm install
         npm start

       # Vue
         cd projects/vue.js
         npm install
         npm run serve

Go to Stencil Firebase Web Components Video page

Go to Stencil Firebase Web Components description page

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.