carleryd / elm-hipster-stack Goto Github PK
View Code? Open in Web Editor NEWSimple project using Elm, Phoenix, GraphQL and PostgreSQL
Simple project using Elm, Phoenix, GraphQL and PostgreSQL
Hi, I'm trying to run this code on cloud 9, so I'm using port 8081 (there are only 8080,8081 and 8082 ports available on cloud9, I think) and I get this build error on elm:
[info] Running App.Endpoint with Cowboy using http on port 8081
50% 2/3 build modules-- SYNTAX PROBLEM --------- elm-stuff/packages/elm-lang/core/3.0.0/src/Array.elm
I ran into something unexpected when parsing your code!
2| ( Array
^
I am looking for one of the following things:
something like `exposing (..)` which replaced `where` in 0.17
whitespace
Hash: 20f8fd16cff3c8d839e9
Version: webpack 1.13.0
Time: 1291ms
Asset Size Chunks Chunk Names
app.js 1.89 kB 0 [emitted] app
[0] multi app 28 bytes {0} [built]
+ 2 hidden modules
ERROR in ./web/static/js/elm/src/Main.elm
Module build failed:
@ ./web/static/js/app.js 3:12-41
Do you have any experience what could be a reason for this error?
Thanks in andvance for any reply!
Hi, I know it's not a help forum, but have this problem:
I'm running elm-hipster stack on cloud9 (just testing stuff) on port 8081.
It's loaded really fast and looks great, but records doesn't get saved.
I changed port only in config/dev.exs.
Maybe I should change also somewhere else, but I don't know where.
Any hint what am I doing wrong?
This is my search:
Searching for �4000� in�/elm_hipster ��whole word� (Found 20 matches in 16 files)
/elm_hipster/README.md:
16: Create new database by going to localhost:4000/reset
17: Elm app now running on localhost:4000
20: Explore the database with GraphiQL at localhost:4000/graphql
/elm_hipster/deps/phoenix/CHANGELOG.md:
339: url: "ws://localhost:4000",
/elm_hipster/deps/phoenix/lib/phoenix/endpoint.ex:
152: [url: "ws://localhost:4000",
/elm_hipster/deps/phoenix/lib/phoenix/endpoint/server.ex:
17: config = default(config, otp_app, 4000)
/elm_hipster/deps/phoenix_live_reload/lib/phoenix_live_reload/live_reloader.ex:
38: url: "ws://localhost:4000",
/elm_hipster/deps/plug/README.md:
41: Access "http://localhost:4000/" and we are done!
/elm_hipster/deps/plug/lib/plug/adapters/cowboy.ex:
11: Defaults to 4000 (http) and 4040 (https).
122: @http_cowboy_options [port: 4000]
/elm_hipster/deps/plug_graphql/README.md:
94: 5. Open your browser to http://localhost:4000/api?query={greeting}
and you should see something like this:
/elm_hipster/node_modules/enhanced-resolve/lib/node.js:
48: var asyncFileSystem = new CachedInputFileSystem(new NodeJsInputFileSystem(), 4000);
49: var syncFileSystem = new CachedInputFileSystem(new SyncNodeJsInputFileSystem(), 4000);
/elm_hipster/node_modules/lodash/index.js:
11653: * // => 4000
/elm_hipster/node_modules/lodash/math/floor.js:
21: * // => 4000
/elm_hipster/priv/static/js/app.js:
11272: var url = "http://localhost:4000/graphql";
/elm_hipster/web/static/js/elm/graphql-make:
5: $make src/GraphQL/Ahead.graphql "http://localhost:4000/graphql"
/elm_hipster/web/static/js/elm/index.html:
12367: var url = "http://localhost:4000/graphql";
/elm_hipster/web/static/js/elm/elm-stuff/build-artifacts/0.16.0/user/project/1.0.0/GraphQL-Ahead.elmo:
53: var url = "http://localhost:4000/graphql";
/elm_hipster/web/static/js/elm/src/GraphQL/Ahead.elm:
14: "http://localhost:4000/graphql"
Found 20 matches in 16 files
Currently does not store links with data persistency
elm-hipster-stack/config/dev.exs
Lines 24 to 25 in faf63e0
Seems like cruft left over from the earlier shift from my_app to app
Hey, trying to run your example application locally but failing to get app to respond:
~/elm-hipster-stack ❯❯❯ mix phoenix.server ⏎ master ✱
[info] Running App.Endpoint with Cowboy using http on port 4000
Hash: e873fa0d4f7711965e03
Version: webpack 1.13.2
Time: 662ms
Asset Size Chunks Chunk Names
app.js 242 kB 0 [emitted] app
[0] multi app 28 bytes {0} [built]
+ 2 hidden modules
Server is running, and database too:
~ ❯❯❯ rethinkdb --bind all
Running rethinkdb 2.3.5 (CLANG 7.3.0 (clang-703.0.31))...
Running on Darwin 15.6.0 x86_64
Loading data from directory /rethinkdb_data
Listening for intracluster connections on port 29015
Listening for client driver connections on port 28015
Listening for administrative HTTP connections on port 8080
Listening on cluster addresses: 127.0.0.1, 192.168.1.118, ::1, 2a02:1205:500a:e540:4497:16bc:81dc:7543, 2a02:1205:500a:e540:62f8:1dff:feca:6ebe, fe80::1%1, fe80::4562:962e:1670:fbbf%14, fe80::62f8:1dff:feca:6ebe%4, fe80::a0b6:10ff:fe3e:a2cb%8
Listening on driver addresses: 127.0.0.1, 192.168.1.118, ::1, 2a02:1205:500a:e540:4497:16bc:81dc:7543, 2a02:1205:500a:e540:62f8:1dff:feca:6ebe, fe80::1%1, fe80::4562:962e:1670:fbbf%14, fe80::62f8:1dff:feca:6ebe%4, fe80::a0b6:10ff:fe3e:a2cb%8
Listening on http addresses: 127.0.0.1, 192.168.1.118, ::1, 2a02:1205:500a:e540:4497:16bc:81dc:7543, 2a02:1205:500a:e540:62f8:1dff:feca:6ebe, fe80::1%1, fe80::4562:962e:1670:fbbf%14, fe80::62f8:1dff:feca:6ebe%4, fe80::a0b6:10ff:fe3e:a2cb%8
Server ready, "gs_MacBook_Pro_2_local_yei" 30dfacea-16e7-4a63-a135-ef3e8a242cc9
I then try to access localhost:4000/reset
or localhost:4000
and it hangs.
Any ideas what could be causing it? Any ideas how to debug this further?
Currently using:
Cheers,
Galder
Hi,
I've got same problem: phoenixframework/phoenix#1218
Suggested solution is to change config/dev.exs (not tested on *nix):
watchers: [{Path.expand("node_modules/webpack/bin/webpack.js"), ["--watch", "--colors", "--progress"]}]
to
watchers: [node: ["node_modules/webpack/bin/webpack.js", "--watch", "--colors", "--progress"]]
Everything else runs without problem on Windows 10 x64. Btw, I was looking for exactly this stack for my / maybe company's new projects, thank you.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.