Coder Social home page Coder Social logo

photosnear.me's Introduction

PhotosNear.me

http://photosnear.me/

An application that allows you view photos that were taken near your current, physical, location. This is a JavaScript web app built on top of the YUI App Framework, YQL, and Flickr.

Running

You need node.js and npm on your system.

npm install
node server.js

License

Copyright (c) 2011-2013 Eric Ferraiuolo [email protected].

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

photosnear.me's People

Contributors

caridy avatar ericf avatar jshirley avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

photosnear.me's Issues

Write Y.Handlebars view engine for Express 3.x

Given the significant changes to how views and view engines are handled in Express 3.x, a specialized view engine needs to be created for Y.Handlebars which aids the sharing of templates between the server and browser.

Requirements

  • Works with vanilla Handlebars or Y.Handlebars.
  • Has no dependencies.
  • Fulfills Express.js' template adapter API.
  • Respects caching for easy dev and make prod fast.
  • Can expose precompiled templates.
  • Supports concept of a wrapping layout template.
  • Manages its own partials, and readies them before rendering.

Apparant flickr api change.

From the dev console:

Failed to load resource: the server responded with a status of 403 (Forbidden) http://api.flickr.com/services/rest/?method=flickr.photos.search&api_key=09…desc&format=json&jsoncallback=YUI.Env.JSONP.yui_3_11_0_1_1414017067703_210
get: Failed to load http://api.flickr.com/services/rest/?method=flickr.photos.search&api_key=09…desc&format=json&jsoncallback=YUI.Env.JSONP.yui_3_11_0_1_1414017067703_210 yui-debug.js:5920INSTANCE.log yui-debug.js:5920
yui_3_11_0_1_1414017067703_210 response received - timeouts(0) requests(0) yui-debug.js:5920
deleting yui_3_11_0_1_1414017067703_210 yui-debug.js:5920
base: destroy called yui-debug.js:5920
attribute: Adding attribute: destroyed yui-debug.js:5920
event: yui_3_11_0_1_1414017067703_177: windowresize->sub: yui_3_11_0_1_1414017067703_178 yui-debug.js:5920
Failed to load resource: net::ERR_CACHE_MISS http://localhost:3000/places/null/
event: yui_3_11_0_1_1414017067703_177: windowresize->sub: yui_3_11_0_1_1414017067703_178 yui-debug.js:5920
Failed to load resource: net::ERR_TIMED_OUT http://api.flickr.com/services/rest/?method=flickr.photos.search&api_key=09…desc&format=json&jsoncallback=YUI.Env.JSONP.yui_3_11_0_1_1414017067703_159
get: Failed to load http://api.flickr.com/services/rest/?method=flickr.photos.search&api_key=09…desc&format=json&jsoncallback=YUI.Env.JSONP.yui_3_11_0_1_1414017067703_159 yui-debug.js:5920
yui_3_11_0_1_1414017067703_159 response received - timeouts(0) requests(0) yui-debug.js:5920
deleting yui_3_11_0_1_1414017067703_159

Improve model caching

The number of models cached on the server should be limited by a maximum number of entries, while the cache in the browser should be based on expires.

The trouble is Y.Cache's max attribute is not supported by Y.CacheOffline. This means the cache class which is used should be based on the YUI.Env.Flickr.CACHE values.

Improve the process for how data is rehydrated in the browser

Use middleware to automatically add the serialized data which the server uses to render page into the locals which are used by the view engine for rendering.

Creating a standardize process and place to serialize and deserialize this data will be useful at hinting towards future features/conventions in YUI.

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.