Giter Site home page Giter Site logo

notepad's Introduction

NotePad

This is a Rails 3 application using html5 pushState with Davis.js and Mustache templates via Poirot, take a look at it running here.

The same partials are used client and server side to render the list of notes and the note display area of the screen, mustache makes this possible.

All links are bound to by a Davis.js application which handles the requests from clicking links and submitting forms client side.

The app should work equally well with or without JavaScript disabled, the JavaScript version doesn't do any fancy animation so it might be hard to tell, but when enabled it is the Davis.js application that it is taking care of rendering notes.

Code

The interesting code is in the JavaScripts folder, start by looking at app.js which is where the Davis.js app and its routes are defined. A very simple view factory handles the client side templating using Handlebars.js and the Note model uses the excellent js-model.

Running Locally

To get the app running locally do the following

bundle
rake db:schema:load
rails s
open http://localhost:3000/notes

notepad's People

Contributors

olivernn avatar

Stargazers

Shem 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.