GithubHelp home page GithubHelp logo

hpopp / faker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from elixirs/faker

0.0 2.0 0.0 578 KB

Faker is a pure Elixir library for generating fake data.

License: MIT License

Elixir 100.00%

faker's Introduction

Faker

VersionLicenseBuild StatusIssuesDownloadsGitter

Faker is a pure Elixir library for generating fake data.

Quickstart

  • add {:faker, "~> 0.11"} to your deps in mix.exs:

    defp deps do
      [{:faker, "~> 0.11", only: :test}]
    end
  • run:

    mix deps.get
    
  • add Faker.start() to test/test_helper.exs:

    ExUnit.start()
    Faker.start()
  • jump to usage examples.

Requirements

  • OTP 18+
  • Elixir 1.4+

Usage

See documentation and usage examples.

Troubleshooting

  • If you get a message like the one below when you call Faker.Address.city/0, you need to add :faker to your application's mix file, in the applications function, as above.

    ** (FunctionClauseError) no function clause matching in Faker.Address.city_count/1
    lib/faker/address.ex:48: Faker.Address.city_count(nil)
    lib/faker/address.ex:41: Faker.Address.city/0
    

Tools

Faker was designed as a lightweight library, that's why it can be easily used with other tools.

Templating

You can build templates for testing purposes with the Blacksmith project. See the Blacksmith readme for details.

Thanks

Sponsored by Evil Martians

Released under the MIT License.

faker's People

Contributors

anthonator avatar batate avatar bcat-eu avatar cdesch avatar crbelaus avatar dependabot[bot] avatar devshane avatar fenollp avatar gitter-badger avatar gmile avatar johnhamelink avatar lowks avatar orieken avatar petehamilton avatar pfac avatar readmecritic avatar rodrigues avatar samcdavid avatar saulecabrera avatar stfnsr avatar supersimple avatar tbash avatar tobyhinloopen avatar trestrantham avatar vbrazo avatar vyorkin avatar whatyouhide avatar wojtekmach avatar yordis avatar zmoshansky 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.