13 Apr 2018 |
restenb | i'm trying to receive json data through a post to a macchiato server, using this example for middleware: | 13:15:41 |
restenb | https://github.com/macchiato-framework/examples/blob/master/cljsbin/src/cljsbin/middleware.cljs | 13:15:44 |
restenb | doesn't work though. i get back a response with "Unexpected token " in JSON at position 0" | 13:18:46 |
restenb | seems to be generated from the json wrap-node-middleware as seen on line 16 | 13:19:23 |
restenb | the post request just has content-type set to application/json with the json string as raw data in the body | 13:20:00 |
restenb | any tips? am I missing some additional middleware to deal with application/json properly? | 13:20:25 |
restenb | for the record the json i'm testing with is just this | 13:22:09 |
restenb | "{\"foo\": 1, \"bar\": 2, \"baz\": [1,2,3]}" | 13:22:10 |
| richiardiandrea joined the room. | 17:34:05 |
richiardiandrea | Hello folks I have contributed all the package.json but not actually tried if the lumo compatible, they should all be because I haven't seen of macros | 17:34:07 |
richiardiandrea | So yogthos, seancorfield made us a present:
```
clj -Sdeps '{:deps {seancorfield/clj-new {:git/url "https://github.com/seancorfield/clj-new" :sha "a87bdc0347fe1523e8d85283d94b06f5dd68b2cb"}}}' -m clj-new.create macchiato mcto-test
Quick Start
-----------
run the compiler:
cd macc-test
lein build
run Node.js in another terminal:
cd macc-test
npm start
see README.md for further instructions
``` | 20:49:33 |
richiardiandrea | it is awesome because with this and lumo npm integration folks can get rid of lein | 20:51:03 |
| seancorfield joined the room. | 21:17:55 |
seancorfield | Careful! It's a work in progress and it still has a bunch of sharp edges! ๐ | 21:17:56 |
seancorfield | Feel free to add issues for anything you find that is broken or missing (it doesn't support template arguments yet, nor any of the myriad command-line switches that it's sibling boot-new has... | 21:18:50 |
15 Apr 2018 |
restenb | what's the correct way to wrap application/json in middleware with macchiato? | 08:39:10 |
yogthos | the restful-format middleware handles format translations https://github.com/macchiato-framework/macchiato-core/blob/9271dd58c34421e85ccab7a0fc42a56deaf4794e/src/macchiato/middleware/restful_format.cljs#L84 | 12:31:17 |
18 May 2018 |
| juliobarros joined the room. | 17:42:55 |
juliobarros | Can a Macchiato app be deployed to AWS lambda? Does that question even make sense? ๐ | 17:42:56 |
gadfly361 | juliobarros Not answering your question, but just wanted to throw out this link in case you or anyone reading this thread hasnt seen it: https://github.com/nervous-systems/cljs-lambda | 17:57:01 |
juliobarros | Thanks gadfly361 Iโve seen and used that project and it worked great given the cool complexity of managing N functions. Am now exploring options for a more โtraditionalโ web app structure/support/architecture. I forget what they call it. Lambdolith or something. ๐ | 18:00:59 |
gadfly361 | Lamdolith, I dig it ๐ | 18:01:47 |
richiardiandrea | You can run lamdba functions in kubernetes I think...maybe called kubelets or something? | 21:09:10 |
26 Jun 2018 |
| scitesy joined the room. | 01:48:39 |
29 Jun 2018 |
| scitesy left the room. | 04:30:25 |
1 Jul 2018 |
| scitesy joined the room. | 03:03:33 |
3 Jul 2018 |
| scitesy left the room. | 22:00:03 |
15 Jul 2018 |
| clojer joined the room. | 23:20:05 |
clojer | Is it possible to use HugSQL with Macchiato? | 23:20:13 |
clojer | It seems that the db/sql connection is the missing piece right now with Macchiato. | 23:20:44 |