Giter Site home page Giter Site logo

netzke-basepack's Introduction

netzke-basepack

A pack of pre-built Netzke components, such as grid, form, tab panel, etc. Learn about Netzke on netzke.org.

Requirements

  • Ruby 1.9.2 (1.8.7 may work, too)

  • Rails >= 3.0.0

  • Ext JS >= 3.3.0

Installation

In your Gemfile:

gem 'netzke-basepack'

For the “edge” stuff, tell bundler to get the gem straight from GitHub:

gem 'netzke-basepack', :git => "git://github.com/skozlov/netzke-basepack.git"

Usage

Read the “Embedding components into Rails views” section on github.com/skozlov/netzke-core

Embed a basepack component into a view as any other Netzke component, e.g.:

<%= netzke :books, :class_name => 'Basepack::GridPanel', :model => 'Book' %>

(assuming model ‘Book’ exists)

For more examples, see demo.netzke.com, and look into test/rails_app

Running tests

Netzke-basepack is bundled with automated tests. To run them, you need to set up test/rails_app a similar way as you did with your own Rails app that is using Netzke, i.e.: 1) link Ext JS into the “public” folder, 2) link your copy of netzke-core and netzke-basepack into vendor/gems, 3) run migrations and clone the development database structure into the test database.

After this you may run (*from test/rails_app*):

cucumber features

and

rspec spec

Testing playground

The test/rails_app application is also a convenient playground, as it may be run as independent Rails 3 app. After starting it, access any of the lib/netzke widgets by using the following url:

http://localhost:3000/components/<name of the component class>

e.g.:

http://localhost:3000/components/UserGrid

Icons support

Netzke-basepack can make use of FamFamFam Silk icon set (www.famfamfam.com/archive/silk-icons-thats-your-lot/). To enable this, download the icons and put the “icons” folder into your app’s public/images folder. Then restart your application.

More info

Official project site: netzke.org

Twitter (latest news about Netzke): twitter.com/skozlov

Many (if a bit outdated) tutorials: blog.writelesscode.com


Copyright © 2008-2010 Sergei Kozlov, released under the MIT license

netzke-basepack's People

Contributors

delwyn avatar elser avatar gertthiel avatar mindreframer avatar spieker avatar

Watchers

 avatar

Forkers

tuggdev

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.