You do not need noir to create a simple json api, just use compojure. I find the Cheshire json library to also be useful: https://github.com/dakrone/cheshire. Authentication and authorization libs were pretty much up to you until https://github.com/cemerick/friend was released fairly recently, so you could look at that (I haven't used it myself). I would also recommend starting the server with embedded jetty rather than mess around with app containers, it's far simpler (look at ring.adapter.jetty).
We have many json apis written in clojure in production where I work, and they have worked out great for us. On Wed, Oct 3, 2012 at 1:01 PM, arekanderu <arekand...@gmail.com> wrote: > Hello, > > I had a similar question as the OP so I thought i should post it in this > thread instead of starting a new one. > > I am trying to build a web services api which will only respond in json > format. I had a look at everything suggested in this topic and I am leaning > towards noir. Do you think this would be a good option for a web services > api or should i go with ring + compojure, or something else?? In addition, I > will be needing to add authentication and authorization at the api and I > haven't found a noir middleware to be able to handle this. Do I need to roll > out something of my own with the use of noir pre-route and maybe a > middleware or is there something in existence which I am not aware of? > > Thank you for any replies. > > > On Friday, September 28, 2012 10:36:20 AM UTC+3, Yakovlev Roman wrote: >> >> Hi >> So i'd like to point to the problem here. Clojure web framework in google >> get these results, at least for me >> 1. noir >> 2. stackoverflow question 2008 year >> 3. stackoverflow question 2010 year >> 4. joodo ( outdated thing developed by one person) >> 5. Compojure ( routing dsl) >> So there is no popular framework these days for clojure. >> Noir is mostly Chris Granger thing. As he make Lighttable today Noir >> developed by some other people ( or may be on person not sure). Main site >> instructions are nice but already outdated ( lein2). No news, no blog, no >> new features, no examples, no infrastructure. Lein new project, insert noir >> in dependencies and you don't have working app, you must add :main and stuff >> to work. What about testing ? no info, no structure, decide on your own. >> It's no secret that web development today is biggest and popular trend. If >> language and it's community have good web framework that language will gain >> more popularity. >> Take Ruby on rails it has over 30 core contributers, huuuge community, >> active development, industry standart web development framework. Good >> testing, development infrastracture, easy start, sprockets for js css >> managment and so on. Also it has some books about testing and framework >> itself which is good start point for newbies. >> I like Clojure, for simplicity mostly. It has amazing power and i believe >> it can be very good platform for web development. >> So what i suggest : >> Take 1 platform for web development in Clojure (for example noir as most >> mature framework) . >> Form working core group from 5-6 people. >> Decide about name of the project ( or take Noir) >> Make good site about it >> Make a plan for development ( what core features should have first >> version) >> Make first version >> Make couple good examples >> Make good documentation and maybe a book ( community book for example on >> github that will be online and updated frequently). >> -------------- >> http://www.playframework.org/ good example what site could be >> Alternative to online book can be guides, as for ruby on rails >> http://guides.rubyonrails.org/index.html >> Another good news that there is nice web IDE for Clojure by Bodil Stokke >> https://github.com/bodil/catnip. Super easy install, very nice insterface, >> reactive interface ( no need for browser refresh, autorecompile when you >> save ) web based ! and under active development, just perfect place for >> newbies to start. So this project also can be added to Clojure Web framework >> project. >> Also we have ClojureScript so Clojure web framework would be perfect place >> where this thing can shine. >> Let's discuss. > > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to clojure@googlegroups.com > Note that posts from new members are moderated - please be patient with your > first post. > To unsubscribe from this group, send email to > clojure+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en