Giter Club home page Giter Club logo

fubuvalidation's Introduction

FubuValidation

What is FubuValidation?

FubuValidation is a member of the Fubu-family of frameworks -- frameworks that aim to get out of your way by providing rich semantic models with powerful convention-driven operations. It aims to provide a convention-driven approach to validation while supporting more traditional approaches when needed.

An important thing to note: FubuValidation is NOT coupled to FubuMVC. In fact, it maintains no references to the project.

What is FubuMVC.Validation?

FubuMVC.Validation is a package that adapts FubuValidation to the FubuMVC framework and provides out-of-to-the-box support for many common validation scenarios (both ajax and non-ajax).

Get it on NuGet

You can clone our repo and build from scratch, or you can use our NuGet packages:

  • FubuValidation - The core validation framework
  • FubuMVC.Validation - FubuMVC specific uses for FubuValidation

Using FubuMVC.Validation

By default, FubuMVC.Validation will be automatically be applied once it is installed. The default policy is to make any chains matching the following criteria validated:

  1. Any route that responds to an HTTP POST
  2. Any chain that returns an AjaxContinuation

Why does git status show that all of my files are modified?

The Fubu-family of frameworks are built by Windows users, so all of the text files have CRLF line endings. These line endings are stored as-is in git (which means we all have autocrlf turned off). If you have autocrlf enabled, when you retrieve files from git, it will modify all of your files. Your best bet is to turn off autocrlf, and re-create your clone of FubuMVC.

  1. Delete your local clone of the repository
  2. Type: git config --global core.autocrlf false
  3. Type: git config --system core.autocrlf false
  4. Clone the repository again

More information about working with git and FubuMVC

Where is CommonAssemblyInfo.cs?

CommonAssemblyInfo.cs is generated by the build. The build script requires Ruby with rake installed.

  1. Run InstallGems.bat to get the ruby dependencies (only needs to be run once per computer)
  2. open a command prompt to the root folder and type rake to execute rakefile.rb

If you do not have ruby:

  1. You need to manually create a src\CommonAssemblyInfo.cs file
  • type: echo // > src\CommonAssemblyInfo.cs
  1. open src\FubuValidation.sln with Visual Studio and Build the solution

Building FubuValidation

  1. If you do not have Ruby installed, get the latest version and install it. For Windows, you can find it at RubyInstaller
  2. After Ruby is installed, in the root directory, run InstallGems.bat
  3. If that succeeds, in the root directory, run rake
    1. If prompted, run git submodule update --init to populate your buildsupport folder.
    2. Rerun rake
  4. At this point, the project should have all NuGet packages pulled down, been built and tested.

You are now ready to launch FubuValidation.sln

fubuvalidation's People

Contributors

jmarnold avatar jeremydmiller avatar mtscout6 avatar drusellers avatar emiaj avatar bbehrens avatar joshuaflanagan avatar kevm avatar ahjohannessen avatar smerrell avatar chadmyers avatar coreykaylor avatar kharlamov avatar ventaur avatar styson avatar sbartlett avatar

Watchers

Niklas Wendel 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.