Sha256: 7c8790cd5feec6b3a99b27f02f5ab9c4b16568c60e065513013083d82cca35af

Contents?: true

Size: 1.88 KB

Versions: 1

Compression:

Stored size: 1.88 KB

Contents

# Curate  [![Version](https://badge.fury.io/rb/curate.png)](http://badge.fury.io/rb/curate) [![Build Status](https://travis-ci.org/ndlib/curate.png?branch=master)](https://travis-ci.org/ndlib/curate) [![Dependency Status](https://gemnasium.com/ndlib/curate.png)](https://gemnasium.com/ndlib/curate)

## Starting a New Curate Base Application

When you generate your new Rails application, you can use Curate's application template:
```bash
$ rails new my_curate_application -m https://raw.github.com/ndlib/curate/master/lib/generators/curate/application_template.rb
```

### Or Install By Hand

Add the following line to your application's Gemfile:

    gem 'curate'

And then execute:
```bash
$ bundle
$ rails generate curate
```

## Curate Developer Notes

### Initial Setup

* Install imagemagick (or else you will get errors when Bundler tries to compile rmagick)

### Jetty Commands

Install jetty:

```bash
$ rake jetty:unzip
```

Start/stop jetty:

```bash
$ rake jetty:start
$ rake jetty:stop
```

Jetty logs:

```bash
$ tail -f jetty/jettywrapper.log
```

### Running the Specs

To clean & generate a dummy app that the specs will use for testing:
```bash
$ rake clean
$ rake generate
```

Make sure jetty is running before you run the specs.

To run the test suite:
```bash
$ rake spec
```

To run a localized spec:
```bash
$ BUNDLE_GEMFILE=spec/internal/Gemfile bundle exec rspec path/to/spec.rb:LINE
```

#### Or run via Zeus:

In terminal window #1
```bash
$ zeus start
```

In terminal window #2, once Zeus is loaded:

```bash
$ zeus rake spec
```

Or a localized spec:

```bash
$ zeus test path/to/spec.rb:LINE
```

### Running a copy of Curate in the curate gem

Given that Curate regenerates (via the `rake clean generate` tasks) you can run a functioning instance of curate in that directory.

From the curate directory:
```bash
$ rake clean generate
$ rake jetty:start
$ cd ./spec/internal
$ rails server
```

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
curate-0.5.2 README.md