GithubHelp home page GithubHelp logo

taumich / angularjs-leaderboard-firebase Goto Github PK

View Code? Open in Web Editor NEW

This project forked from simpulton/angularjs-leaderboard-firebase

0.0 2.0 0.0 601 KB

A realtime leaderboard using AngularJS and Firebase.

HTML 62.87% CSS 6.55% JavaScript 30.58%

angularjs-leaderboard-firebase's Introduction

Angularjs-Leaderboard-Firebase

Welcome to a realtime leaderboard built with AngularJS and Firebase! This app is simple to set up so let's get started.

Prerequisites

Getting Started

First, make sure you have Git and Node.js installed (see "Prerequisites"). Then open your terminal/command prompt and run the following commands:

git clone https://github.com/simpulton/angularjs-leaderboard-firebase.git
cd angularjs-leaderboard-firebase

Now open up the code in your favorite text editor.

Setting up Firebase

To run the app, you will need to set up an account with Firebase. Don't worry, it's free AND easy!

Get a Firebase Account

First, navigate to https://www.firebase.com/. Then you can do one of two things: you can sign up for an account with your email or, if you have a Github account, you can log in with those credentials.

Create an App

After you have logged in/signed up, you will be taken to your dashboard. Go ahead and create a new app (call it whatever you want). After you click CREATE NEW APP, your app will appear in your dashboard.

Get your Firebase URL

Click Manage App on your newly minted Firebase app. Once you have transitioned to the new page, copy the URL from the address bar. It should look like https://<your-app-name>.firebaseio.com/.

Put the URL in the app

Now open up your code editor, navigate to js/leader-board.js, and replace the FIREBASE_URI constant (line 3 as of this writing) with your Firebase URL. Firebase is now ready to go!

Running the App

Now go back to your terminal, make sure you are in the angularjs-leaderboard-firebase directory, and then run serve. In your browser, navigate to http://localhost:3000. Boom! The app is now running. Read on for a tour of the app.

Tour de App

Let's take a quick look at what the app does.

The Index View

The index page is where we show all of our data. leader-index

The Admin View

The admin page is where we can CRUD (Create Read Update Delete) our data. leader-admin

The Remote View

The remote page is where the realtime component becomes important. Here, we can choose a contestant and then update their score. Click here to see a realtime demo. leader-remote

angularjs-leaderboard-firebase's People

Contributors

jdgarvey avatar kevdonk avatar

Watchers

 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.