Skip to content

The full source for [elm-lang.org](http://elm-lang.org/), the home-page of the Elm programming language. Open sourced as a way to teach people how to write and serve Elm code. Follow the instructions in README.md to get the site setup on your own machine.

License

Notifications You must be signed in to change notification settings

dservgun/elm-lang.org

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

elm-lang.org: a template for creating websites in Elm

This project contains all of the source files used to create elm-lang.org, the home-page of the Elm programming language.

The project provides a general structure for creating your own Elm website, mixing Elm, images, videos, HTML/CSS/JS, and whatever else you need.

This project includes a Haskell server that determines how to serve each kind of file, so you only need to think about the content.

Set up

First make sure that you have the Elm compiler installed (directions).

Then follow these steps to get this all running on your local machine:

  • Clone this project
  • Run cabal install --bindir=.
  • Run ./run-elm-website to start the server

Great! You should be set up with elm-lang.org running at localhost:8000/.

You can run cabal clean to clear out all cached build information and start fresh.

Project Structure

  • public/ — all of the .elm files used for the site. This makes up the majority of client-side code. You can change/delete the existing files and add entirely new files. The changes, deletions, and additions will be served automatically.

  • resources/ — the various resources needed for Elm. This is where you put all of your non-Elm content, like images, videos, JavaScript code, etc.

  • server/ — the Haskell files responsible for serving everything from .elm files to images. Look here if you need to change how a particular resource is served or if you want to disable some of the sites features (such as the online editor).

About

The full source for [elm-lang.org](http://elm-lang.org/), the home-page of the Elm programming language. Open sourced as a way to teach people how to write and serve Elm code. Follow the instructions in README.md to get the site setup on your own machine.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Elm 48.5%
  • JavaScript 45.2%
  • CSS 3.6%
  • Haskell 2.7%