GithubHelp home page GithubHelp logo

vages / elm-demystify-decoders Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zwilias/elm-demystify-decoders

0.0 1.0 0.0 107 KB

๐Ÿ’ก Figure out how JSON decoders in Elm work by writing them. Step by step.

Home Page: https://blog.ilias.xyz/demystifying-decoders-d294ed35bc6e

License: BSD 3-Clause "New" or "Revised" License

Elm 100.00%

elm-demystify-decoders's Introduction

Demystifying JSON decoders

Some people learn best by reading, others learn by best exploring and experimenting. This project caters to the latter.

Decoding JSON in Elm can often feel daunting and difficult, even to experienced developers. The exercises in this project attempt to guide you through JSON decoding, by gradually increasing the level of complexity.

Starting the exercises

  • Clone this repository
  • Install elm and elm-test
  • Open the project in your editor

Installing elm and elm-test

There are a couple of options. You can either install them globally, using npm -g i elm elm-test or using yarn global add elm elm-test, or locally in the scope of this project using either npm i or yarn install.

Running the tests for a specific exercise

After solving an exercise, for example Exercise01, you can run the tests for that exercise. The method you use will depend on how you chose to install elm and elm-test:

  • elm-test tests/Exercise01 - if you installed it globally
  • npm run elm-test tests/Exercise01 - locally using npm
  • yarn elm-test tests/Exercise01 - locally using yarn

elm-demystify-decoders's People

Contributors

ikr avatar pzel avatar vages avatar zwilias avatar

Watchers

 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.