Code Monkey home page Code Monkey logo

angular-firebase-template's Introduction

Angular Firebase Template

This is a base project for Angular integrating Firebase e-mail authentication. It's designed to start your project without the need of mess with authentication.

It also integrates PrimeNG UI components to build the user interface.

Setting up

Just clone the repo and run:

npm install

or

yarn install

Configuring Firebase environment

All Firebase related configuration is in firebaseConfig object described in src/environments/environment.ts

export const environment = {
  production: false,
  entryRoute: 'getting-started',
  firebaseConfig: {
    apiKey: '[FIREBASE-API-KEY]'
    authDomain: '[FIREBASE_AUTH_DOMAIN]',
    databaseURL: '[FIREBASE_DATABASE_URL]',
    projectId: '[FIREBASE_PROJECT_ID]',
    storageBucket: '[FIREBASE_STORAGE_BUCKET]',
    messagingSenderId: '[FIREBASE_MESSAGING_SENDER_ID',
    appId: '[FIREBASE_APP_ID]',
    measurementId: '[FIREBASE_MEASUREMENT_ID]'
  }
};

You can generate firebaseConfig in your Firebase console going to Project Settings > Your Application > Add application > Web application. Just replace firebaseConfig in environment.ts.

Running the project

Run npm start for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

About the project

Feel free to add or modify things. Just send me a PR if you do it.

angular-firebase-template's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

angular-firebase-template's Issues

Code doesn't work

Why i type npm install, i get this:

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: @angular/[email protected]
npm ERR! node_modules/@angular/core
npm ERR! @angular/core@"~9.0.1" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @angular/core@"9.1.13" from @angular/[email protected]
npm ERR! node_modules/@angular/animations
npm ERR! @angular/animations@"^9.0.1" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!

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.