cerebris / peeps-ember-orbit Goto Github PK
View Code? Open in Web Editor NEWSimple contact manager demo app for ember-orbit
Simple contact manager demo app for ember-orbit
Launching with ember s
I have this error:
$ ember s
Livereload server on http://localhost:49153
The Broccoli Plugin: [broccoli-persistent-filter:Babel > [Babel: ember-orbit]: Babel: ember-orbit] failed with:
Error: ENOENT: no such file or directory, mkdir 'C:\orbit\peeps-ember-orbit\tmp\funnel-output_path-OgUT01GW.tmp\@orbit\utils'
at Object.fs.mkdirSync (fs.js:892:18)
at Funnel.applyPatch [as _applyPatch] (C:\orbit\peeps-ember-orbit\node_modules\broccoli-funnel\index.js:375:10)
at Funnel.<anonymous> (C:\orbit\peeps-ember-orbit\node_modules\broccoli-funnel\index.js:343:10)
at Array.forEach (<anonymous>)
at Funnel.processFilters (C:\orbit\peeps-ember-orbit\node_modules\broccoli-funnel\index.js:342:11)
at Funnel.build (C:\orbit\peeps-ember-orbit\node_modules\broccoli-funnel\index.js:258:10)
at C:\orbit\peeps-ember-orbit\node_modules\broccoli-plugin\read_compat.js:93:34
at tryCatch (C:\orbit\peeps-ember-orbit\node_modules\rsvp\dist\rsvp.js:539:12)
at invokeCallback (C:\orbit\peeps-ember-orbit\node_modules\rsvp\dist\rsvp.js:554:13)
at publish (C:\orbit\peeps-ember-orbit\node_modules\rsvp\dist\rsvp.js:522:7)
The broccoli plugin was instantiated at:
at Babel.Plugin (C:\orbit\peeps-ember-orbit\node_modules\broccoli-plugin\index.js:7:31)
at Babel.Filter [as constructor] (C:\orbit\peeps-ember-orbit\node_modules\broccoli-persistent-filter\index.js:62:10)
at new Babel (C:\orbit\peeps-ember-orbit\node_modules\broccoli-babel-transpiler\index.js:35:10)
at Class.transpileTree (C:\orbit\peeps-ember-orbit\node_modules\ember-orbit\node_modules\ember-cli-babel\index.js:52:18)
at packageTrees.map.tree (C:\orbit\peeps-ember-orbit\node_modules\ember-orbit\index.js:63:65)
at Array.map (<anonymous>)
at Class.treeForAddon (C:\orbit\peeps-ember-orbit\node_modules\ember-orbit\index.js:63:47)
at Class.superWrapper [as treeForAddon] (C:\orbit\peeps-ember-orbit\node_modules\core-object\lib\assign-properties.js:34:20)
at Class._treeFor (C:\orbit\peeps-ember-orbit\node_modules\ember-cli\lib\models\addon.js:556:33)
at Class.treeFor (C:\orbit\peeps-ember-orbit\node_modules\ember-cli\lib\models\addon.js:516:21)
I'm on Windows 10 x64, nodejs 8.5.0, npm 5.4.1, yarn 1.0.2.
It doesn't work by default with nodejs 8.5.0 so I upgraded in package.json:
"ember-cli": "^2.13.2",
"ember-cli-qunit": "^4.0.1",
I know this is very much in the draft phase but I thought it might be useful to document issues that I found while trying this out with peeps-uuid.
Currently when a new contact is created orbit.js does a PUT to /contacts/:id but the server responds with a 404. According to http://jsonapi.org/format/#crud-creating-client-ids it looks like the request should be a POST (even though it includes a uuid). I'm not entirely sure though because http://jsonapi.org/format/#crud-creating-client-ids doesn't mention whether PUT or POST should be used.
i.e. after adding a phone number orbit.js keeps hitting the server with:
http://localhost:4200/phone_numbers/e3c7bc6d-6052-4bb2-8aca-6a737a71bcc4
{ phone_numbers: {contact_id: null} }
the response is a 200 with a payload like:
{"phone_numbers":{"id":"e3c7bc6d-6052-4bb2-8aca-6a737a71bcc4","contact_id":null,"name":null,"phone_number":"345","links":{"contact":null}}}
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.