How to use external clojure libraries? #210
-
Hey folks, does anyone tried to use some library like https://github.com/plumatic/schema ? Is it actually possible? |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 4 replies
-
I also put a question on that here: #20 (comment) |
Beta Was this translation helpful? Give feedback.
-
Actually I follow this: https://github.com/babashka/nbb/blob/main/doc/dependencies.md And reach to this result: The repo is here: https://github.com/devsoutinho/app-labs/tree/main/_servers/webproxy |
Beta Was this translation helpful? Give feedback.
-
@borkdude thanks for your answer! I will try to find an alternative, hope in future this work, will be amazing!!! I'm actually doing some experiments creating web servers like this one: https://devsoutinho-webproxy.herokuapp.com/ The full code is here: https://github.com/devsoutinho/app-labs/tree/main/_servers/webproxy/webproxy/app |
Beta Was this translation helpful? Give feedback.
-
@omariosouto I made something here. The prismatic/schema library is compiled to another npm dependency which you have to also include and then you can use schema. Please try it out and let me know how it works for you. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the update @borkdude!!! it works now, and I'm able to do the validations I see that the Edit: I also try to run using |
Beta Was this translation helpful? Give feedback.
@omariosouto I made something here. The prismatic/schema library is compiled to another npm dependency which you have to also include and then you can use schema. Please try it out and let me know how it works for you.
https://github.com/babashka/nbb#prismaticschema