Re: Clojure web framework

2015-03-13 Thread zhujinxian
(defn render-test [ret tmt] (-> (resp/response "--rendertest--") (#(resp/content-type %1 "text/plain" (defn foo "I don't do a whole lot." [x] (str "来自源码目录的参数:" x)) (defn handler [^Integer x] {:$r render-test :text (str "hello world, road goes sucess!" (foo x))})

Re: clojure web framework

2013-09-13 Thread Anton Podviaznikov
Hi John, It's super easy to deploy Clojure web app (ring) to Amazon Beanstalk. I think there were few blog posts about that. Basically you just need https://github.com/weavejester/lein-beanstalk Anton On Friday, September 13, 2013 2:45:10 PM UTC-3, Jon Barker wrote: > > anybody know the easies

Re: clojure web framework

2013-09-13 Thread Christopher Allen
Well for creation itself, http://www.luminusweb.net/ represents best practices with Ring, Compojure, and the usual attendant libraries. For deployment, I'd say something like Fabric or Ansible is going to be the simplest way to start. On Friday, September 13, 2013 10:45:10 AM UTC-7, Jon Barker

Re: Clojure web framework

2012-10-03 Thread arekanderu
Thanks a lot Gaz :) I am pretty new to clojure but I like it a lot so far. Good to know that there are a lot of things going fast in the clojure community! On Wednesday, October 3, 2012 9:39:21 PM UTC+3, Gaz wrote: > > You do not need noir to create a simple json api, just use compojure. > I fi

Re: Clojure web framework

2012-10-03 Thread gaz jones
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 y

Re: Clojure web framework

2012-10-03 Thread arekanderu
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 t

Re: Clojure web framework

2012-10-03 Thread Pierre-Henry Perret
It seems you have missed one important framework: ClojureScript One So I have choosed to make the *TodoMVC* template (see [0]) application with *ClojureScript One* and *Enfocus*. ( see [1] for running app ) What I could say now, is that CjOne is a little hard to embrace, but when it's done ,

Re: Clojure web framework

2012-10-02 Thread kovas boguta
Lets not forget http://clojurescriptone.com/ Its a pretty amazing artifact, a complete app with perfect documentation. Its also essentially a template. If someone is totally lost on how to get started with clojure web programming, just go to that. In the more general case, I strongly agree that

Re: Clojure web framework

2012-10-02 Thread Jim Crossley
Hi Simone, Simone Mosciatti writes: > Immutant ( http://immutant.org/ ) IMO is moving in a great direction, > if I have understand is wrapping several libraries in just one > enviroment... Since you brought it up, I'd like to clarify terminology a bit in case anyone thinks Immutant is a framewo

Re: Clojure web framework

2012-10-02 Thread Yakovlev Roman
Ok that's good idea really. As i can see you just use ring compojure korma for mysql and postgresql for pg database. As for me i use for my first project this config (defproject testpro "0.1.0-SNAPSHOT" :plugins [[lein-catnip "0.4.1"]] :description "FIXME: write description" :url "http://e

Re: Clojure web framework

2012-10-01 Thread Leonardo Borges
On Sun, Sep 30, 2012 at 12:27 PM, James MacAulay wrote: > Frameworks have benefits which can't easily be achieved with > documentation. The most obvious to me is that a framework lets you fire up > a complete system of carefully curated components in no time. They also let > you defer choices unti

Re: Clojure web framework

2012-10-01 Thread James MacAulay
Frameworks have benefits which can't easily be achieved with documentation. The most obvious to me is that a framework lets you fire up a complete system of carefully curated components in no time. They also let you defer choices until you actually need to care about them. Because Clojure's lib

Re: Clojure web framework

2012-09-30 Thread Simone Mosciatti
Immutant ( http://immutant.org/ ) IMO is moving in a great direction, if I have understand is wrapping several libraries in just one enviroment... And red hat is behind it I just find out, that usually means great doc... -- You received this message because you are subscribed to the Google Grou

Re: Clojure web framework

2012-09-29 Thread goracio
Well main points of the discussion are: 1. Noir is enough for start. 2. No framework is needed because you can combine some useful libraries and that's it. 3. Some agree that guides or wiki still needed but no luck with contributors so far. Ok have to think about that. Will ask some major people

Re: Clojure web framework

2012-09-29 Thread larry google groups
> Documentation is always an issue, few times ago I propose to organize a > fund raiser to improve OUR project, the project of OUR community, stuff we > should be proud of, and the improve of the doc was one of the biggest > issue... However nobody supported me. I think it helps when there is mo

Re: Clojure web framework

2012-09-29 Thread larry google groups
> How can i recommend others to use Clojure and how i answer the question "So > what about clojure is there any good framework to start with and what i can > do with that" ? That is a great question. I think the appropriate response is to be honest about the culture of Clojure. When I try to ans

Re: Clojure web framework

2012-09-29 Thread larry google groups
goracio, This is an important issue. Many developers are familiar with an ecosystem built around a well known framework. Ruby has Rails, Java has Spring, Python has Django. Clojure might benefit by imitating that pattern. However, I will point out, Clojure is almost 5 years old, and so far that p

Re: Clojure web framework

2012-09-29 Thread Simone Mosciatti
On Saturday, September 29, 2012 1:48:10 PM UTC+2, Anthony Grimes wrote: I do not have access to the website in order to update it > Somebody (Chris Granger ???) has the access, if you are actually maintaining it you should have the access too... > Chris has things he wanted to see done fir

Re: Clojure web framework

2012-09-29 Thread Sean Corfield
Clojure offers a lot of choice. Great for experienced developers, hard for newbies. Pick something, run with it, contribute documentation to make it better. There have been several attempts to create the "one true wiki" and so far they've all failed for lack of contributions from the folks who hav

Re: Clojure web framework

2012-09-29 Thread Anthony Grimes
Open source projects aren't the result of one person's activity. Other people are welcome to contribute. Noir isn't dead or anything, it's just slow at the moment. Furthermore, yes, the website is outdated. I do not have access to the website in order to update it, and there hasn't been a non-b

Re: Clojure web framework

2012-09-29 Thread Sergey Didenko
So we are back to the documentation reach issue again. I think the best solution would be one (!) central community wiki and prominent mentions of it from the clojure.org . The wiki could contain the links to the latest tutorials and so on. It should have quite low barrier to entry. -- You rece

Re: Clojure web framework

2012-09-28 Thread Matt
There is already a rails like Clojure web framework which has been around for a while called Conjure: https://github.com/macourtney/Conjure Here is the wiki to get started: https://github.com/macourtney/Conjure/wiki The most recent release is out of date, but I have been working on an update. I

Re: Clojure web framework

2012-09-28 Thread Mark Rathwell
> Well there are many usefull libs for web development you can choose this and > that combine them and get something. > But from newbie perspective it's kind of a difficult question where to start > from, what to use, what good practice is. > What lib to use for persistance with Mysql, Postgre, for

Re: Clojure web framework

2012-09-28 Thread goracio
"lein new noir my-app cd my-app lein run" Yes i already made pull request to update README file with this. Well there are many usefull libs for web development you can choose this and that combine them and get something. But from newbie perspective it's kind of a difficult question where to st

Re: Clojure web framework

2012-09-28 Thread Sean Corfield
The lein-noir plugin works with lein2 so you can just say: lein new noir my-app cd my-app lein run The webnoir.org website seems to provide reasonable documentation on getting started. If you have suggestions to improve the documentation, I'm sure Chris would be happy to receive them (I suspect t

Re: Clojure web framework

2012-09-28 Thread Mark Rathwell
> Documentation around libraries (and elsewhere) is recognized > as a primary weakness, but starting a new, larger web Framework project > isn't an obvious solution to that very distributed problem. Agree 100% with this. I think the various libraries are mostly at the right level, and are mostly

Re: Clojure web framework

2012-09-28 Thread Chas Emerick
If I may offer a couple of counterpoints: Compojure is slightly more popular than noir, at least based on the (perhaps faulty) measures of stars and forks on github, and "used by" count on http://clojuresphere.herokuapp.com. There are good reasons why a Rails-esque framework has not yet caught

Re: Clojure web framework

2012-09-28 Thread Michael Wood
On 28 September 2012 10:22, goracio wrote: > No i don't. Project page for now https://github.com/noir-clojure/noir and > it's updated 3 months ago. I guess project maintained by one person > https://github.com/Raynes and i guess he does not have much time to do the > work. Usage info still outdate

Re: Clojure web framework

2012-09-28 Thread goracio
No i don't. Project page for now https://github.com/noir-clojure/noir and it's updated 3 months ago. I guess project maintained by one person https://github.com/Raynes and i guess he does not have much time to do the work. Usage info still outdated If you want to include Noir in an already crea

Re: Clojure web framework

2012-09-28 Thread Sven Johansson
On Fri, Sep 28, 2012 at 9:36 AM, goracio wrote: > 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 p

Re: Clojure Web Framework, what I want to add

2009-03-17 Thread Jeffrey Straszheim
I hadn't heard of Grizzly before. Thanks for the pointer (er..., reference, or whatever we're calling them these days). On Tue, Mar 17, 2009 at 5:31 AM, Hubert Iwaniuk wrote: > Hi Jeffrey, > I was recently thinking of adding support for > https://grizzly.dev.java.net/ in > http://github.com/wea

Re: Clojure Web Framework, what I want to add

2009-03-17 Thread Hubert Iwaniuk
Hi Jeffrey, I was recently thinking of adding support for https://grizzly.dev.java.net/ in http://github.com/weavejester/compojure/tree/master. Just need some time to get my head around compojure. Cheers, Hubert. On Tue, Mar 17, 2009 at 12:52 AM, Jeffrey Straszheim < straszheimjeff...@gmail.com

Re: Clojure Web Framework, what I want to add

2009-03-17 Thread James Reeves
On Mar 16, 11:17 pm, BerlinBrown wrote: > After many years (decade) of web development, here are the things that > I want in a framework, mostly based in clojure: > > What do you think and what you add.  This is ambitious and just a > "ideas" of what I would add.  What would you want from your id

Re: Clojure Web Framework, what I want to add

2009-03-16 Thread Berlin Brown
On Mar 16, 10:42 pm, Shawn Hoover wrote: > On Mon, Mar 16, 2009 at 9:18 PM, Stuart Sierra > wrote: > > > > > > > On Mar 16, 7:17 pm, BerlinBrown wrote: > > > After many years (decade) of web development, here are the things that > > > I want in a framework, mostly based in clojure: > > > > Wha

Re: Clojure Web Framework, what I want to add

2009-03-16 Thread Shawn Hoover
On Mon, Mar 16, 2009 at 9:18 PM, Stuart Sierra wrote: > > On Mar 16, 7:17 pm, BerlinBrown wrote: > > After many years (decade) of web development, here are the things that > > I want in a framework, mostly based in clojure: > > > > What do you think and what you add. This is ambitious and just a

Re: Clojure Web Framework, what I want to add

2009-03-16 Thread Stuart Sierra
On Mar 16, 7:17 pm, BerlinBrown wrote: > After many years (decade) of web development, here are the things that > I want in a framework, mostly based in clojure: > > What do you think and what you add.  This is ambitious and just a > "ideas" of what I would add.  What would you want from your ide

Re: Clojure Web Framework, what I want to add

2009-03-16 Thread David Nolen
I'm mostly a front-end UI person with crazy amounts of JS experience so most of my input will be from that stand point. 1. I agree with Sean on this one. No need to bring in middleware that can't be expressed in 10X-20X less code in pure Clojure. 2. The framework should allow for any backend (even

Re: Clojure Web Framework, what I want to add

2009-03-16 Thread Sean
Okay, if you have to work with something rpe-existing that makes more sense. My main point is that if I were started from scratch, I'd do it different. On Mar 16, 8:12 pm, Berlin Brown wrote: > On Mar 16, 7:52 pm, Jeffrey Straszheim > wrote: > > > I'd love to see something built around very-hi

Re: Clojure Web Framework, what I want to add

2009-03-16 Thread Berlin Brown
On Mar 16, 7:52 pm, Jeffrey Straszheim wrote: > I'd love to see something built around very-high scalability, using NIO and > thread pools and such. > > On Mon, Mar 16, 2009 at 7:40 PM, Sean wrote: > > > I'm not sure if some of the design inputs make sense, specifically > > Spring and Hibernat

Re: Clojure Web Framework, what I want to add

2009-03-16 Thread Jeffrey Straszheim
I'd love to see something built around very-high scalability, using NIO and thread pools and such. On Mon, Mar 16, 2009 at 7:40 PM, Sean wrote: > > I'm not sure if some of the design inputs make sense, specifically > Spring and Hibernate. > > Point 1 - I've found the strength of Spring to be mak

Re: Clojure Web Framework, what I want to add

2009-03-16 Thread Sean
I'm not sure if some of the design inputs make sense, specifically Spring and Hibernate. Point 1 - I've found the strength of Spring to be making up for the weaknesses of Java. Once you have first class functions, macros, and multi-methods (to name a few), Spring doesn't bring much to the table

Re: Clojure Web Framework, what I want to add

2009-03-16 Thread Howard Lewis Ship
Personally, I've been noodling about what a Tapestry/Clojure hybrid might look like. I'd advise that you take a peek at Lift, a functional web framework built on Scala. I have some ideas about what a component based framework would look like in a function world (note: this would be leaving JSPs