Skip to content

krisajenkins/autoheadline

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AutoHeadline - A HackerNews Headline Generator

Written for June 2015's West London Hack Night.

See it live here.

Building

You'll need Elm 0.16, make and lessc. Then just run make in the top-level directory and the files are built into dist/.

Directory Structure

src/App.elm

Generic app wiring. This file will probably look about the same in every Elm app you'll write.

src/Types.elm

The datatypes that define our app, and some (pure) functions for manipulating them.

src/State.elm

App starting state (Model, Effects Action), and the Action handlers.

src/View.elm

Rendering functions.

src/Markov.elm

A library for making Markov chains.

src/Rest.elm

Everything to do with REST & JSON.