Giter VIP home page Giter VIP logo

phoenix-react-apollo-demo's Introduction

TodoApp

Example app started with Zeal's React app generator and a Phoenix back end.

Absinthe is used for the GraphQL server with Apollo as the GraphQL client

Setup

  • Install elixir dependencies with mix deps.get
  • Install node dependencies with npm install
  • Create and migrate your database with mix ecto.setup

Development

  • Start Phoenix endpoint with mix phoenix.server
  • Start client dev server in another window with npm start

Now you can visit localhost:4000.

GraphiQL

Visit localhost:4000/graphiql.

License

Authored by the Engineering Team of Coding ZEAL

Copyright (c) 2017 Zeal, LLC. Licensed under the MIT license.

phoenix-react-apollo-demo's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

phoenix-react-apollo-demo's Issues

Missing "priv/static/asset-manifest.json"

First of all thanks for sharing this project ;)! It looks like great place to start hacking with phoenix and GraphQL. I have some trouble with running project, after installing deps (mix and npm) and running mix todo_app.setup:

== Compilation error on file web/views/layout_view.ex ==
** (File.Error) could not read file "priv/static/asset-manifest.json": no such file or directory
    (elixir) lib/file.ex:244: File.read!/1
    web/views/layout_view.ex:5: (module)
    (stdlib) erl_eval.erl:670: :erl_eval.do_apply/6
    (elixir) lib/kernel/parallel_compiler.ex:117: anonymous fn/4 in Kernel.ParallelCompiler.spawn_compilers/1

Issue with react-storybook

Hi,
While exploring some new stuff implemented by You I encounter problem with launching react-storybook. I tried expanding file paths but it does not solve issue so there is some other issue which is not so clear for me, right now I try to catch up this new approach to front end development ;).

Stacktrace:

# npm run storybook
ERROR in ./client/stories/index.js
Module not found: Error: Cannot resolve module 'modules/todo' in /Users/ernest/Projects/elixir/phoenix-react-apollo-demo/client/stories
 @ ./client/stories/index.js 13:12-35

ERROR in ./client/stories/index.js
Module not found: Error: Cannot resolve module 'styles/commons.scss' in /Users/ernest/Projects/elixir/phoenix-react-apollo-demo/client/stories
 @ ./client/stories/index.js 15:0-30

ERROR in ./client/stories/index.js
Module not found: Error: Cannot resolve module 'styles/theme' in /Users/ernest/Projects/elixir/phoenix-react-apollo-demo/client/stories
 @ ./client/stories/index.js 17:13-36

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.