Giter Club home page Giter Club logo

polymer-todo's Introduction

Realtime Polymer To-Do App

A realtime collaborative to-do app made using Polymer 1.0 and PubNub.

full_labeled

Intro to Polymer

If you kept up with Google I/O 2015, then you likely saw that Polymer 1.0 has been released to the public. If you have been around since Polymer 0.5, then you likely saw that all your favorite building blocks have been deprecated. For all those who have used 0.5, consider this a migration assistant. Those of you who have never seen Polymer before, you're in for a treat!

Polymer is a library that leverages web components to allow you to define and use custom HTML elements. With custom elements, designing and building a website becomes a game of Legos. Polymer 1.0 replaces the shadow DOM polyfill with a lightweight shim, reduces the code size, and speeds up data-binding for an all around smoother experience.

The beauty of making an app with polymer is the responsive material design that looks beautiful on all screen sizes from TVs to mobile!

full_labeled

Running The Demo

1. Clone this Repository

This repo has all the used elements downloaded so you do not have to run a bower install. However, all dependencies are saved in the bower.json file, so if you want to update them it is simple using bower update.

2. Serve the Files on Localhost

If you try to open file://<your-polymer-project> in your browser, you will likely run into Cross-Origin Resource Sharing (CORS) errors since the browser will block your requests to use video and microphone features. To test your code you have a few options. You can upload your files to a web server, like Github Pages if you prefer. However, to keep development local, I recommend you setup a simple server using Python.

To so this, open your terminal and change directories into your current project and depending on your version of Python, run one of the following modules.

cd <project-dir>

# Python 2
python -m SimpleHTTPServer <portNo>

# Python 3
python -m http.server <portNo>

For example, in Python2.7 if you run python -m SimpleHTTPServer 8001, you can go to http://localhost:8001/index.html to test the app!

polymer-todo's People

Contributors

gleasonk avatar redian avatar

Stargazers

White Prime avatar Richard van Liessum U+2713 avatar Josep avatar Zaida avatar Carl Ditzler avatar  avatar Nikolay Yotsov avatar Juan Fernandez-Corugedo Igual avatar Alex Gusev avatar Hai Le Phu avatar Salah Saleh avatar Quang Van avatar Aditya Chawla avatar Lucivaldo Costa avatar Mhd Sami Al Mouhtaseb avatar IMarty avatar Radu Ciocan avatar Nikyle Nguyen avatar Leif Olsen avatar

Watchers

James Cloos avatar Salah Saleh avatar  avatar Joe Hanson avatar  avatar

polymer-todo's Issues

Behavior issues

The error I recieved: Received firebase-child-removed event for unknown child "-K-N1yz28CTfACATYlNW"'

I connected two devices to a depolyed(to firebase) version of your repo, using the same google account on each device. When one deleted an item the other device threw the error above.

I cloned your repo, bower update, changed the firebase element from your firebase to mine, ran gulp and then firebase deployed it to my firebase after editing firebase.json. Those are the only changes I made.

Also shows up for editing: Received firebase-child-changed event for unknown child "-K-N56Pd9ebRqLPGBsHo"

I assume it wasn't meant to be used this way since probably each account should only be active on one device but if you have a simple fix it would be a nice feature to have. I believe it may be the firebase object id changes.

It seems as if it doesnt show up all the time either. Might be a race condition.

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.