Skip to content

mortenaa/elm-themed-hack-night-2

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Elm themed hack night #2. Encoders and decoders

Install

Make sure you have elm and npm installed. npm usually comes bundled with nodejs and elm install instrutions can be found at elm-lang.org

Make sure you are in the root folder of the project, then run:

npm install
elm-package install

Run it

Right now you need to have 2 separate processes if you want to run and watch both the server and the elm code.

To run and watch elm code: npm run elm
To run and watch server: npm run server

You should now see something at localhost:3000, if it compiles

Task

Fill in the decoder and encoder for "medium user".

Bonus: For those who solve the "medium user", there's a "complex user" on the server. Check out server.js to see it's structure. Make a GET request and decoder to get it at /complex-user

Extra bonus: POST a medium user

Resources

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Elm 77.8%
  • JavaScript 17.8%
  • HTML 4.4%