Source

ckan /

Filename Size Date modified Message
bin
ckan
ckan.egg-info
docs
1.9 KB
89 B
2.9 KB
2.6 KB
1.1 KB
1.6 KB
501 B

## Introduction

Comprehensive Knowledge Archive Network (CKAN) Software.

See ckan.__long_description__ for more information.

## Copying

This material is open and licensed under the MIT license as follows:

Copyright (c) 2006-2007 Open Knowledge Foundation.

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.

## Authors

  • Rufus Pollock <rufus [at] rufuspollock [dot] org>
  • John Bywater
  • Nick Stenning (css and js)

## Installation and Setup

  1. Get the code and install it:

    $ easy_install ckan

    Or checkout from the svn repo at <http://knowledgeforge.net/ckan/svn/trunk> and then do

    $ sudo python setup.py

    If you want to work from a subversion copy and plan to make modifications do:

    $ sudo python setup.py develop

    This step should install most the library dependencies for CKAN. However some dependencies may not be able to be installed automatically. Please see install_requires option (and associated comments) in setup.py.

  1. Make a config file as follows:

    $ paster make-config ckan config.ini

  2. Tweak the config file as appropriate and then setup the application:

    $ paster setup-app config.ini
    
  3. Run the webserver:

    $ paster serve config.ini

  1. Run the webserver for development:

    $ paster serve --reload development.ini

  2. Point your browswer at: localhost:5000 (if you set a different port in your config file then youl will need to change 5000 to whatever port value you chose).

  3. [optional] Production deployment. CKAN2 is built using pylons. A full walkthrough of production deployment can be found at:

    http://pylonshq.com/project/pylonshq/wiki/FastCGI.

## Tests

When starting from a clean system for the tests to run properly you will need to:

  1. Create the basic db structure: $ bin/ckan-admin rebuild
  2. Create some basic test data: $ bin/ckan-admin testdata

To run the tests you should use py.test:

$ py.test ckan/tests