Git Product home page Git Product logo

beanvalidation.org's Introduction

How to build beanvalidation.org

A bit of Git, a bit of Ruby and you will get your local beanvalidation.org served.

Prerequisites

  • Get Git
  • Get a Ruby > 1.9
  • Get RVM to manage separate Ruby environments (optional - you should know what and why you do it)

Installation

Get the source

> git clone https://github.com/beanvalidation/beanvalidation.org.git
> cd beanvalidation.org

Rake

Make sure Rake is available. It is often installed per default.

> rake --version
rake, version 0.9.6

If you get command not found:

gem install rake

Bundler

Make sure Bundler is available. It manages your Ruby gems locally to the project and prevents version conflicts between different Ruby projects. To quote from the website:

Bundler provides a consistent environment for Ruby projects by tracking and installing the exact gems and versions that are needed.

> bundle -v
Bundler version 1.6.2

If you get command not found:

gem install bundler

Install dependencies

rake setup[local]
rake check

Serve the site locally

rake preview

Point your browser to http://localhost:4242

Tips & Tricks

Which other tasks exist in the Rake build file?

> rake --tasks

This will list the available tasks with a short description

I am getting errors when trying to execute awestruct directly

You need to use bundle exec <command> to make sure you get all required Gems. Check the Rakefile to see how the different awestruct calls are wrapped.

If your changes are not visible...

Panic! Then completely regenerate the site via:

rake clean preview

License

The content of this repository is released under the ASL 2.0.

By submitting a pull request or otherwise contributing to this repository, you agree to license your contribution under the respective licenses mentioned above.

beanvalidation.org's People

Contributors

davided avatar emmanuelbernard avatar gsmet avatar gunnarmorling avatar hendrikebbers avatar hferentschik avatar lightguard avatar pmuir avatar sjmisterm avatar xcoulon avatar

Watchers

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