Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Clojure web framework
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  Messages 1 - 25 of 28 - Collapse all  -  Translate all to Translated (View all originals)   Newer >
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
goracio  
View profile  
 More options Sep 28 2012, 3:36 am
From: goracio <felix...@gmail.com>
Date: Fri, 28 Sep 2012 00:36:20 -0700 (PDT)
Local: Fri, Sep 28 2012 3:36 am
Subject: Clojure web framework

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 must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Sven Johansson  
View profile  
 More options Sep 28 2012, 4:04 am
From: Sven Johansson <johansson.s...@gmail.com>
Date: Fri, 28 Sep 2012 10:04:06 +0200
Local: Fri, Sep 28 2012 4:04 am
Subject: Re: Clojure web framework

On Fri, Sep 28, 2012 at 9:36 AM, goracio <felix...@gmail.com> 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 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).

+1
I've been having great fun & success with Noir and would hate to see it
covered in moss and in a state of disrepair.
If time permits, I'd be interested in participating, but time is not
something of which I have plenty at the moment.

But first of all, have you reached out to whoever is the maintainer today?

Regards/Sven


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
goracio  
View profile  
 More options Sep 28 2012, 4:22 am
From: goracio <felix...@gmail.com>
Date: Fri, 28 Sep 2012 01:22:48 -0700 (PDT)
Local: Fri, Sep 28 2012 4:22 am
Subject: Re: Clojure web framework

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 created leiningen project, simply add this to your dependencies:

[noir "1.2.2"]

Project maintained mostly at https://clojars.org/noir because there is
"1.3.0-beta10" version already and github just abandoned.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michael Wood  
View profile  
 More options Sep 28 2012, 4:56 am
From: Michael Wood <esiot...@gmail.com>
Date: Fri, 28 Sep 2012 10:55:29 +0200
Local: Fri, Sep 28 2012 4:55 am
Subject: Re: Clojure web framework
On 28 September 2012 10:22, goracio <felix...@gmail.com> 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 outdated

> If you want to include Noir in an already created leiningen project, simply
> add this to your dependencies:

> [noir "1.2.2"]

> Project maintained mostly at https://clojars.org/noir because there is
> "1.3.0-beta10" version already and github just abandoned.

Just because the documentation is not up to date it does not mean that
github has been abandoned.  If you look here:

https://github.com/noir-clojure/noir/blob/master/project.clj

you will see that the version on github is 1.3.0-beta10.

--
Michael Wood <esiot...@gmail.com>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chas Emerick  
View profile  
 More options Sep 28 2012, 10:42 am
From: Chas Emerick <c...@cemerick.com>
Date: Fri, 28 Sep 2012 10:42:30 -0400
Local: Fri, Sep 28 2012 10:42 am
Subject: Re: Clojure web framework

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 on with Clojure programmers. Libraries > frameworks, and all the goodness that flows from that.  Given that perspective (smaller libraries made to compose trivially), there's really not enough work for 5-6 people to do on a single project.  Better to have some very large number of people working together on a plurality of focused libraries.

From the data we have[1], people are being quite successful with Clojure in web development contexts (anecdotally, using Compojure as well as Noir and others, too).  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.

Finally, although it is not free, note that 'Clojure Programming'[2] provides a "from scratch" tutorial of how to use Ring, Compojure, and Enlive.

Cheers,

- Chas

[1] http://cemerick.com/2012/07/19/2012-state-of-clojure-survey/
[2] http://www.clojurebook.com

On Sep 28, 2012, at 3:36 AM, goracio wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mark Rathwell  
View profile  
 More options Sep 28 2012, 11:13 am
From: Mark Rathwell <mark.rathw...@gmail.com>
Date: Fri, 28 Sep 2012 11:12:48 -0400
Local: Fri, Sep 28 2012 11:12 am
Subject: Re: Clojure web framework

> 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 being worked on a the right pace, but
having a wiki-like place with tutorials and contributed project
examples (or walk-throughs of open stuff already available) showing
how all of the pieces can be used together (including both clj and
cljs), and which pieces are right for various types of projects would
be beneficial, I think.

Like everyone else, time is not plentiful right now, but I'd be
willing to contribute if someone has time to take the lead.

 - Mark


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Sean Corfield  
View profile  
 More options Sep 28 2012, 11:37 am
From: Sean Corfield <seancorfi...@gmail.com>
Date: Fri, 28 Sep 2012 08:36:52 -0700
Local: Fri, Sep 28 2012 11:36 am
Subject: Re: Clojure web framework

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 the webnoir.org site
is also a repo on github so you can send pull requests).

I ported my web framework FW/1 from CFML to Clojure for my own use but feel
free to check that out too. Again, the simple lein2 approach works:

lein new fw1 my-app
cd my-app
lein run
(or PORT=8123 lein run to use a different port)

Documentation is minimal because it's deliberately a simple framework but
there's an example app, also ported from the CFML version, and more docs on
the CFML version's github repo - plus a fairly large user community for the
CFML version :)

I don't really thinks Rails-like frameworks fit with the Clojure way of
thinking. As Chas said, we're more inclined to combine a number of
libraries to help build an application than to use "frameworks". FW/1 uses
Ring and Enlive and provides just a thin convention-based veneer over those
to achieve most of what the CFML version has offered for three years :)

Sean

--
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
World Singles, LLC. -- http://worldsingles.com/

"Perfection is the enemy of the good."
-- Gustave Flaubert, French realist novelist (1821-1880)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
goracio  
View profile  
 More options Sep 28 2012, 12:30 pm
From: goracio <felix...@gmail.com>
Date: Fri, 28 Sep 2012 09:30:20 -0700 (PDT)
Local: Fri, Sep 28 2012 12:30 pm
Subject: Re: Clojure web framework

"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
start from, what to use, what good practice is.
What lib to use for persistance with Mysql, Postgre, for Mongo, is there
alternative to Backbone here, how make site reactive, how to use ajax, is
there MVC pattern or there is no any and so on.
How can i test my app, what best libs for that and what best practices.
How can i deploy my app, what tools i can use for that.
What debbuging tools can i use.
Is there any special IDE or plugin to existing IDE for fast and convinient
web development. Simple case - lein can autoreload/autocompile code for
ClojureScript but how about a project?

So examples and good updated guides/online book does matter.
There should be clear point about why Clojure and Clojure applied to web
better then others, how it can solve problems better then others.

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" ?
I am not talking about absence of any guides and recommendations about web
dev in Clojure there are couple good examples but they are outdated.

And still if Noir is like Sinatra for not too big sites and projecst and
Rails is like a pro maybe there should be something like a pro at Clojure.

пятница, 28 сентября 2012 г., 19:37:05 UTC+4 пользователь Sean Corfield
написал:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mark Rathwell  
View profile  
 More options Sep 28 2012, 1:21 pm
From: Mark Rathwell <mark.rathw...@gmail.com>
Date: Fri, 28 Sep 2012 13:21:28 -0400
Local: Fri, Sep 28 2012 1:21 pm
Subject: Re: Clojure web framework

> 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 Mongo, is there
> alternative to Backbone here, how make site reactive, how to use ajax, is
> there MVC pattern or there is no any and so on.
> How can i test my app, what best libs for that and what best practices.
> How can i deploy my app, what tools i can use for that.
> What debbuging tools can i use.
> Is there any special IDE or plugin to existing IDE for fast and convinient
> web development. Simple case - lein can autoreload/autocompile code for
> ClojureScript but how about a project?

These are all documentation issues.  It's not that documentation
doesn't exist, but I think one consolidated location telling telling
the entire story of Clojure web development would be extremely helpful
for people looking to answer the questions you have listed.

> And still if Noir is like Sinatra for not too big sites and projecst and
> Rails is like a pro maybe there should be something like a pro at Clojure.

I think this is really an issue of combining the right existing
components, and knowing what those right components are for a given
situation.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Matt  
View profile  
 More options Sep 28 2012, 9:38 pm
From: Matt <macourt...@gmail.com>
Date: Fri, 28 Sep 2012 18:38:47 -0700 (PDT)
Local: Fri, Sep 28 2012 9:38 pm
Subject: Re: Clojure web framework

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've completed all of the new features of the update and now I'm
running through tests and making sure the tutorial is still accurate.
Unfortunately, I haven't had as much time to work on it as I would have
liked recently.

Though I'm using it at my work, not many others seem to be using it. Most
people in the community prefer libraries over frameworks. I doubt you'll do
much better with your own web framework if you don't somehow take that into
account. After seeing a lot of interest in Drift
(https://github.com/macourtney/drift) when I broke it out of Conjure into
its own library, I broke Conjure into a group of libraries for the next
release. If you do make your own web framework, you may want to use some
parts of Conjure.

-Matt


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Sergey Didenko  
View profile  
 More options Sep 29 2012, 4:38 am
From: Sergey Didenko <sergey.dide...@gmail.com>
Date: Sat, 29 Sep 2012 11:38:15 +0300
Local: Sat, Sep 29 2012 4:38 am
Subject: Re: Clojure web framework
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 must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Anthony Grimes  
View profile  
 More options Sep 29 2012, 7:48 am
From: Anthony Grimes <disciplera...@gmail.com>
Date: Sat, 29 Sep 2012 04:48:10 -0700 (PDT)
Local: Sat, Sep 29 2012 7:48 am
Subject: Re: Clojure web framework

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-beta release yet
anyways. Chris has things he wanted to see done first, things I don't
intend to do, so it's mostly waiting on that. You can certainly use Noir --
I've got two websites running on the latest beta version right now. lein2
works fine with it. Nothing to install, in fact.

I am maintaining noir to the best of my ability. This mostly means I merge
pull requests that make sense or ask Chris if they don't. But I don't have
any time for it at all, so any time I do find is pretty rare. Besides that,
I'm a bigger fan of Compojure these days. If the only argument for a
framework over libraries is "newbies find it easier", I agree that
documentation is the answer and not another monolithic framework. It isn't
hard to use Compojure and other web development libraries. I don't think
choice is an issue. You can find out what libraries are most common with
simple google queries and common sense.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Sean Corfield  
View profile  
 More options Sep 29 2012, 8:31 am
From: Sean Corfield <seancorfi...@gmail.com>
Date: Sat, 29 Sep 2012 05:31:25 -0700
Local: Sat, Sep 29 2012 8:31 am
Subject: Re: Clojure web framework

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 have the
most need (the folks who are already successful with the software don't
need the wiki and are generally too busy to contribute - and also don't
have the newbie's mindset so it's hard to write the right material at the
right level).

Definitely Clojure's Achilles heel...

Sean

--
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
World Singles, LLC. -- http://worldsingles.com/

"Perfection is the enemy of the good."
-- Gustave Flaubert, French realist novelist (1821-1880)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Simone Mosciatti  
View profile  
 More options Sep 29 2012, 8:46 am
From: Simone Mosciatti <mweb....@gmail.com>
Date: Sat, 29 Sep 2012 05:46:42 -0700 (PDT)
Local: Sat, Sep 29 2012 8:46 am
Subject: Re: Clojure web framework

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 first, *things I don't intend to do
> *, so it's mostly waiting on that.

Like what ? Do you refer to the road map ? Just example and tutorial ?
If there is something more would be cool to know... Maybe somebody has
already wrote something, or he could work on it...

> I agree that documentation is the answer and not another monolithic
> framework.

 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.

> It isn't hard to use Compojure and other web development libraries.

You can really use noir with just the few example in the website, although
I had some previous (few) knowledge of web developing (django)

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
larry google groups  
View profile  
 More options Sep 29 2012, 12:38 pm
From: larry google groups <lawrencecloj...@gmail.com>
Date: Sat, 29 Sep 2012 09:38:45 -0700 (PDT)
Local: Sat, Sep 29 2012 12:38 pm
Subject: Re: Clojure web framework
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 pattern has not emerged. Maybe there is a good reason for this? I
am sure that you have heard the argument that the big frameworks exist
because composability is difficult in many languages. But
composability is easy in a Lisp, so the need for a big framework is
reduced. Clojure's culture and style so far has been one in which a
project gets stitched together with many small libraries, rather than
a single monolithic framework (and even Rails has moved away from
being monolithic, toward a style of being many optional gems).

I think your project sounds like it could be useful to many people. I
wish you all the luck in the world. But for my part, I am a refugee
from the world of monolithic frameworks. My work has forced me to
spend the last few years working  with Ruby/Rails and PHP/Symfony. For
me, Clojure is like a breath of fresh air. I enjoy building an app
where I can decide what libraries I really need. And I know that both
Rails and Symfony are slowly moving to break themselves up in smaller
pieces. Most of the big frameworks would like to be where Clojure
already is.

Maybe Clojure really needs The One Big Web Framework That Does
Everything. But that style seems to be slowly going out of fashion
elsewhere. It is possible that the future of every language is like
the present-tense Clojure experience: many libraries, composed as you
wish.

Of course, Clojure has the great advantage of being a Lisp.

On Sep 28, 3:36 am, goracio <felix...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
larry google groups  
View profile  
 More options Sep 29 2012, 12:47 pm
From: larry google groups <lawrencecloj...@gmail.com>
Date: Sat, 29 Sep 2012 09:47:00 -0700 (PDT)
Subject: Re: Clojure web framework

> 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 answer that
question to other developers I say:

"In Clojure, there is a collection of standard libraries, rather than
a single framework. Almost everyone starts off with Ring, which is
exactly the same thing as Rack. For routes, people use either
Moustache or Compojure. For the database, people use ClojureQL or
Korma. For HTML templates, people use either Hiccup or Enlive. You
pick the library that matches your preferred style, and all of the
libraries are surprisingly easy to glue together."

That is 6 sentences -- a fairly concise way of communicating one of
the most exciting aspects of Clojure.

On Sep 28, 12:30 pm, goracio <felix...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
larry google groups  
View profile  
 More options Sep 29 2012, 12:54 pm
From: larry google groups <lawrencecloj...@gmail.com>
Date: Sat, 29 Sep 2012 09:54:41 -0700 (PDT)
Local: Sat, Sep 29 2012 12:54 pm
Subject: Re: Clojure web framework

>  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 money as an incentive. People have
limited time, and the issue comes up, how do you justify answering
questions on StackOverflow for free when you could spend the same time
going out to a nice dinner with your girlfriend/wife?

I had $45,000 go through my "Ask A WordPress Question" website, and
the money helped turn it into a very good WordPress resource. I have
been thinking I could do the same for Clojure, with all the money
(save for PayPal fees) going to the programmers who answer the
questions. Not sure if it will work though, as these sites work best
for communities that have a large number of beginners who are willing
to basically pay for tutoring, and Clojure is nothing like that. Might
work for Java, I guess, or maybe I could set it up for the whole JVM?
I need to think about this some. But I agree, more documentation is
needed.

On Sep 29, 8:46 am, Simone Mosciatti <mweb....@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
goracio  
View profile  
 More options Sep 29 2012, 2:37 pm
From: goracio <felix...@gmail.com>
Date: Sat, 29 Sep 2012 11:37:09 -0700 (PDT)
Local: Sat, Sep 29 2012 2:37 pm
Subject: Re: Clojure web framework

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 ( David Nolen and
maybe Rich Hickey) what they think about that.

пятница, 28 сентября 2012 г., 11:36:20 UTC+4 пользователь goracio написал:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
James MacAulay  
View profile  
 More options Sep 29 2012, 10:27 pm
From: James MacAulay <jmacau...@gmail.com>
Date: Sat, 29 Sep 2012 19:27:24 -0700 (PDT)
Local: Sat, Sep 29 2012 10:27 pm
Subject: Re: Clojure web framework

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 libraries are so composable, it seems like a good
approach to fill this gap would be "just" a lein project template with an
opinionated set of dependencies, a sane and predictable folder hierarchy,
and a good Getting Started Guide. A quick clojars search reveals many that
might fit that description, but none have very high visibility.

-James


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Simone Mosciatti  
View profile  
 More options Sep 30 2012, 4:16 am
From: Simone Mosciatti <mweb....@gmail.com>
Date: Sun, 30 Sep 2012 01:16:04 -0700 (PDT)
Local: Sun, Sep 30 2012 4:16 am
Subject: Re: Clojure web framework

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 must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Leonardo Borges  
View profile  
 More options Oct 2 2012, 1:09 am
From: Leonardo Borges <leonardoborges...@gmail.com>
Date: Tue, 2 Oct 2012 15:08:57 +1000
Local: Tues, Oct 2 2012 1:08 am
Subject: Re: Clojure web framework

On Sun, Sep 30, 2012 at 12:27 PM, James MacAulay <jmacau...@gmail.com>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 until you actually need to care about them.

> Because Clojure's libraries are so composable, it seems like a good
> approach to fill this gap would be "just" a lein project template with an
> opinionated set of dependencies, a sane and predictable folder hierarchy,
> and a good Getting Started Guide. A quick clojars search reveals many that
> might fit that description, but none have very high visibility.

That's a good point. I put together a repo that I've been using as my main
template for web apps for a while. You can find it on github:
https://github.com/leonardoborges/clj-boilerplate

It tries to bridge that gap. The idea is to clone it, follow the readme and
you should have a new webapp running in a short amount of time.

I would like to turn it into a lein template but haven't had the time to do
so. Still, it could be useful to some.

Cheers,
Leonardo Borges


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Yakovlev Roman  
View profile  
 More options Oct 2 2012, 3:08 am
From: Yakovlev Roman <felix...@gmail.com>
Date: Tue, 2 Oct 2012 00:08:01 -0700 (PDT)
Local: Tues, Oct 2 2012 3:08 am
Subject: Re: Clojure web framework

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://example.com/FIXME"
  :license {:name "Eclipse Public License"
            :url "http://www.eclipse.org/legal/epl-v10.html"}
  :dependencies [[org.clojure/clojure "1.4.0"]
                 [noir "1.3.0-beta10"]
                 [lein-catnip "0.4.1"]
                 [com.novemberain/monger "1.2.0"]   ]
  :main ^{:skip-aot true} testpro.server)

This config use Noir, monger for MongoDb, catnip as development ide (
though i switch time to time to sublime 2).
So connection with db very easy as monger <http://clojuremongodb.info/> has
very good documentation.

(mg/connect!) ; Connect to db
(mg/set-db! (mg/get-db "myweb")) ; Choose db
 require monger.core for this stuff to work
Also my app has

views
models
helpers

folders and main page with just actions and pages for the app. Noir
bootstrap gives you some structure from the start which includes models and
views also.

So main thing missed at Noir is useful modules like gems for Rails. In
Rails you can add  "devise" or "nifty-generators" which gives you
Authentication, Authorization from scratch and templates and basic
authentication from nifty and other good stuff.
For Noir project there should be lein plugins i guess, but will be those
plugins built in or use noir as platform that is the question.  


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Pierre-Henry Perret  
View profile  
 More options Oct 2 2012, 3:55 am
From: Pierre-Henry Perret <profw...@ecoleadhoc.org>
Date: Tue, 2 Oct 2012 00:55:20 -0700 (PDT)
Local: Tues, Oct 2 2012 3:55 am
Subject: Re: Clojure web framework

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 , this is a real pleasure to work with.

(I havent used the api functionalities in the sample, *todos* are saved on
local repo)

The hard part was to integrate *Enfocus*.
The whole view is done with Enfocus which rocks !

For those interested in code, see [2].
_______________________________________
[0] http://todomvc.com
[1] http://todomvc.herokuapp.com
[2] https://github.com/phperret/cjone-todomvc.git

Le vendredi 28 septembre 2012 09:36:20 UTC+2, Yakovlev Roman a écrit :


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jim Crossley  
View profile  
 More options Oct 3 2012, 12:08 am
From: Jim Crossley <jcrossl...@gmail.com>
Date: Wed, 03 Oct 2012 00:07:58 -0400
Local: Wed, Oct 3 2012 12:07 am
Subject: Re: Clojure web framework
Hi Simone,

Simone Mosciatti <mweb....@gmail.com> 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 framework.

An *application* is a collection of *libraries* assembled in a
particular way to provide some service.

A *framework* enforces a "particular way", essentially providing a
template for building your application.

Immutant is not a framework, it's an application server, a single
process capable of running multiple applications simultaneously,
including some commodity services like messaging, scheduling and caching
that, because they're integrated, can be easily clustered and
coordinated.

Immutant does provide libraries to invoke those services, but if and how
you use them in your application is completely up to you.

> And red hat is behind it I just find out, that usually means great
> doc...

You mean like this? ;-)
https://twitter.com/gphil/statuses/253285427702816768

Sorry to hijack the thread,
Jim


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
kovas boguta  
View profile  
 More options Oct 3 2012, 2:05 am
From: kovas boguta <kovas.bog...@gmail.com>
Date: Wed, 3 Oct 2012 02:04:51 -0400
Local: Wed, Oct 3 2012 2:04 am
Subject: Re: Clojure web framework
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 lein templates are the
way to go.

Its so great so just create a new project via the lein plugins. Its
not totally idiot proof, but way better than inert texts telling you
how to install various things.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Messages 1 - 25 of 28   Newer >
« Back to Discussions « Newer topic     Older topic »