Giter Club home page Giter Club logo

albums's Introduction

Albums Haskell/Elm App

1. Preconditions

1.1. Backend

The backend is written in Haskell and uses servant to serve a REST-api.

You will need to install:
  1. Haskell - You might want to install Haskell platform

  2. Stack

1.2. Frontend

The frontend is written in Elm

You will need to install:
  1. Elm platform

2. Get it up and running

Firstly just clone this repo. If you wish to try out the demo app corresponding with a particular episode of the accompanying blog series, checkout the appropriate tag (named after each episode)

2.1. Backend

  1. Open a terminal and cd to $albums/backend

  2. (Optional/Depending on your ghc version in path) - stack setup

  3. stack build

  4. stack exec albums

If you would like to hack with reload support: - stack install halive alternatively clone halive and build with stack manually (you might need to fiddle to ensure the ghc version used matches/is compatible with the backend app) - stack exec halive src/Main.hs src - Edit/save and enjoy recompile and auto restart

You may test that it’s up and running by curl http://localhost:8081/artists/1

2.2. Frontend

  1. Open a terminal and cd to $albums/frontend

  2. elm-package install --yes

  3. npm install

  4. npm run dev

Open a browser window with the following url: http://localhost:8090/

You should now be able to do changes on .elm files, and upon save get live reload.

albums's People

Contributors

rundis avatar ryan-senn avatar tjweir avatar ushfnuk 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.