Giter Site home page Giter Site logo

spud_events's Introduction

Spud Events

Spud Events is an event and calendaring engine for the Spud Engine

Installation/Usage

  1. Add the following to your Gemfile

     gem 'spud_events'
    
  2. Run bundle install

  3. Copy the database migrations in to your rails project

     rake railties:install:migrations
    
  4. Run the database migrations rake db:migrate

  5. The defualt URL for the calendar page is /calendar

Configruations

  • Set the layout for the calendar pages (Defualt is layouts/spud/calendar)

      Spud::Events.configure do |config|
        config.calendar_layout = 'application'
      end
    
  • Override the default calendar views by placing the corresponding views in the calendars and calendar_events view folders.

  • Include the default calendar CSS by adding the following to your application.css file

      /*
      ...
      *= require spud/events
      */
    

Testing

Spud uses RSpec for testing. Get the tests running with a few short commands:

  1. Create and migrate the databases:

     rake db:create
     rake db:migrate
    
  2. Load the schema in to the test database:

     rake app:db:test:prepare
    
  3. Run the tests with RSpec

     rspec spec
    

After the tests have completed the current code coverage stats is available by opening /coverage/index.html in a browser.

spud_events's People

Contributors

davydotcom avatar ddeyoung avatar smidwap avatar speavey avatar

Watchers

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