GithubHelp home page GithubHelp logo

elm-programming-ladder's Introduction

Info

The graphcool server-part of this repo is imported from the previous programming ladder. To this point, that part remains unchanged. The elm frontend is then designed to work on top of that existing backend.

Git repo structure

The structure of this repo (branches etc.) follows this branching model

Setup

Install node packages:

yarn

Back-End Setup

  • Install dependencies for the server: cd ladder/server && yarn && graphcool local up
  • Gå to the page for authentication for the Graphcool-project, copy the authentication command (should look like this: graphcool login —token $TOKEN) and run this.
  • Start developing with graphcool deploy --target my-dev _ If you get no errormessages (see below), choose shared-eu-west-1 in the menu that pops up. You'll be prompted to enter a name for the service. Name it my-dev (or something else; it doesn't matter that much). _ I get the error-message Cannot read property 'viewer' of undefined: Open ladder/server/.graphcoolrc if the file exists. Probably you've got a line in the file that begins with local:. Delete this line and repeat the command above.
  • Now you'll find the admin-interface for this instanse of Graphcool under the project my-dev on your Graphcool-console.
  • On the end of the text that pops up there is a list of URLs. Copy the URL after Simple API:.
  • Go to the client part of the project and find the Main.elm file and replace the value of the API reference with the Simple API-URL you got from the previous step.

Running the BACKEND

GraphQL as a service, Graphcool

$ cd server
$ graphcool deploy --target prod

Running the elm-application:

In terminal run:

yarn start

Open http://localhost:8000

Useful links

Simple Elm SPA examples:

Complex Elm SPA examples

GrapQL and dillonkearns/elm-graphql:

elm-programming-ladder's People

Contributors

petterrostrup avatar pernillej avatar elenaand avatar chrpeter avatar runarfu avatar

Stargazers

Henning Lund-Hanssen avatar  avatar

Watchers

Anders A avatar Geir A Erikstad avatar Peder Hans Øverland avatar James Cloos avatar  avatar Imre Kerr avatar Flemming Lauritzen avatar  avatar Henning Grimeland Koller avatar skogie avatar Roger Nesheim avatar  avatar  avatar Håkon Nordli avatar  avatar  avatar

Forkers

imre-kerr

elm-programming-ladder's Issues

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.