GithubHelp home page GithubHelp logo

vellons / vuejs-firebase-auth-template Goto Github PK

View Code? Open in Web Editor NEW
1.0 0.0 2.0 1.9 MB

A basic Vue.js dashboard template integrated with Firebase Auth and build with Vue Material

License: MIT License

JavaScript 14.84% HTML 3.44% Vue 81.44% SCSS 0.28%
vuejs vue-router firebase-auth vue-material material-design dashboard-templates firebase vuejs-firebase dashboard

vuejs-firebase-auth-template's Introduction

vuejs-firebase-auth-base-dashboard-with-vue-material

A basic Vue.js dashboard template integrated with Firebase Auth and build with Vue Material.
This dashboard has protected pages accessible only after user login.
You can also choose between light or dark theme through a switch Home

Integration with your Firebase

This dashboard is fully integrated with Firebase Auth. You only need to register a new web application inside your Firebase project. Remember that you need to enable Email/Password sign-in inside the Firebase console in the Auth section.

After that, copy your Firebase SDK configuration inside src/firebase/credentials.js
Or make .env secret file inside the project root and copy your credentials like that:

VUE_APP_FIREBASE_API_KEY=api-key
VUE_APP_FIREBASE_AUTH_DOMAIN=project-id.firebaseapp.com
VUE_APP_FIREBASE_DB_URL=https://project-id.firebaseio.com
VUE_APP_FIREBASE_PROJECT_ID=project-id
VUE_APP_FIREBASE_STORAGE_BUCKET=project-id.appspot.com
VUE_APP_FIREBASE_MESSAGING_SENDER_ID=sender-id
VUE_APP_FIREBASE_APP_ID=app-id
Login Account

Extend project

To add other Firebase module in you project open src/firebase/index.js file, add the module that you need and export modules like FirebaseAuth.

import firebase from 'firebase/app';
import 'firebase/auth';

import firebaseCredentials from './credentials';
firebase.initializeApp(firebaseCredentials.config);

const FirebaseAuth = firebase.auth();

export {
    FirebaseAuth
}

To import in yours Vue module use:

import {FirebaseAuth} from "your-path/firebase";

Project setup

You need node to build and run this application.
To install all dependencies run in your terminal this command:

npm install

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

Lints and fixes files

npm run lint

Customize configuration

See Configuration Reference.

vuejs-firebase-auth-template's People

Contributors

dependabot[bot] avatar vellons avatar

Stargazers

 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.