Git Product home page Git Product logo

dfiddle-2.0's Introduction

dFiddle 2.0

*2014/05/19: Update to pre-release version of Durandal 2.1.0pre

JSFiddle et al. are all great when there's a need to fiddle with CSS/JavaScript/HTML snippets or share code during discussions on stackoverflow or newsgroups. Unfortunately, due to the nature of which encourages you to break down apps into many smaller modules and then use composition to stitch them back together, those apps are no longer at their sweet spot. There's no easy way to deal with multiple smaller external files in tools like JSFiddle. dFiddle to the rescue!

What is it?

A cut down version of Durandal, hosted as a Github repo with only one gh-pages branch. By cutting things down to the bare minimum, dFiddle allows bringing up live Durandal fiddles in minutes.

Basic Usage

  1. Fork dFiddle on GitHub (hint: there's a fork button in the upper right) and optionally clone it to your local machine
  2. For each example in the Durandal Starter Kit you'll find a fiddle version that can be used as a starting point for your own code.
  3. You're in the mood for creating more examples? Great! Simply create sub-folders in a samples sub-category folders e.g. samples/viewCompostion and add it to sampleGroups in index.js. Check out https://github.com/dFiddle/dFiddle-2.0/blob/gh-pages/app/viewComposition/index.js#L28 for the exact syntax.

Advanced Usage

  1. See above.
  2. Go free style by replacing every bit in the solution with your own code.

Note: If your are trying to get a BreezeJS application up and running you might be better off by hosting your solution on Microsoft Azure, as this would allow you to work with the ASP.NET Web API, which you would have to mock up on GitHub otherwise. The same goes for fiddles that leverage other data technologies.

Sharing the Fiddle

Once you make your first commit the live version will become available at an URL like http://Your_User_Name.github.io/dFiddle-2.0. The published Url can be found under Repo | Settings | GitHub Pages. According to GitHub, it may take up to ten minutes for changes to be visible.

Totally optional: Whenever you find a solution for a specific issue, send a pull request so that it can be integrated.

dfiddle-2.0's People

Contributors

dfiddle avatar eisenbergeffect avatar lpmi-13 avatar raineratspirit avatar

Watchers

 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.