Skip to content

Conversation

RickorDD
Copy link

No description provided.

@arBmind
Copy link
Member

arBmind commented Feb 5, 2017

Nice! Da ist ja schon gut was an Code zusammengekommen.

Kannst du bitte prüfen ob du mit dem Elixir Backend arbeiten kannst.
Die URLs stehen im PR #6
Ich hatte mit https etwas zu kämpfen.

@RickorDD
Copy link
Author

RickorDD commented Feb 5, 2017 via email

@arBmind
Copy link
Member

arBmind commented Feb 5, 2017

One thing to notice is that Phoenix requires a content-type.

req.setRequestHeader("Content-Type", "application/json");

@arBmind
Copy link
Member

arBmind commented Feb 5, 2017

Mein JSON sieht gekürzt so aus:

{"submission":{
  "archive":[
    {"client":"Qt Recorder","description":"Draw: 1","strokes":[
      [{"p":-1,"t":440,"x":124,"y":108},...,{"p":-1,"t":759,"x":200,"y":262}]
    ]},{"client":"Qt Recorder","description":"Draw: 2","strokes":[
      [{"p":-1,"t":421,"x":60,"y":55},...,{"p":-1,"t":881,"x":219,"y":188}]
    ]},{"client":"Qt Recorder","description":"Draw: 3","strokes":[
      [{"p":-1,"t":405,"x":80,"y":72},...,{"p":-1,"t":1050,"x":59,"y":262}]
    ]},{"client":"Qt Recorder","description":"Draw: 4","strokes":[
      [{"p":-1,"t":423,"x":118,"y":62},...,{"p":-1,"t":1183,"x":184,"y":181}]
    ]},{"client":"Qt Recorder","description":"Draw: 5","strokes":[
      [{"p":-1,"t":541,"x":134,"y":41},...,{"p":-1,"t":1164,"x":96,"y":204}],
      [{"p":-1,"t":1608,"x":130,"y":37},...,{"p":-1,"t":1798,"x":280,"y":49}]
    ]},{"client":"Qt Recorder","description":"Draw: 6","strokes":[
      [{"p":-1,"t":517,"x":148,"y":60},...,{"p":-1,"t":998,"x":72,"y":144}]
    ]},{"client":"Qt Recorder","description":"Draw: 7","strokes":[
      [{"p":-1,"t":413,"x":113,"y":67},...,{"p":-1,"t":706,"x":103,"y":204}],
      [{"p":-1,"t":1069,"x":149,"y":142},...,{"p":-1,"t":1220,"x":267,"y":142}]
    ]},{"client":"Qt Recorder","description":"Draw: 8","strokes":[
      [{"p":-1,"t":472,"x":156,"y":67},...,{"p":-1,"t":1271,"x":114,"y":50}]
    ]},{"client":"Qt Recorder","description":"Draw: 9","strokes":[
      [{"p":-1,"t":483,"x":151,"y":38},...,{"p":-1,"t":1350,"x":55,"y":137}]
    ]}
  ],
  "author":"Rebuilder",
  "challenge_id":1
  }
}

@RickorDD
Copy link
Author

RickorDD commented Feb 5, 2017

hab JSON angepasst und funktioniert jetzt.

@arBmind
Copy link
Member

arBmind commented Feb 9, 2017

Ich hab die Heroku app umbenannt, damit man sich den Namen auch merken kann.
https://touchrecorderweb.herokuapp.com/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants