Re: Clojure Web Applications for Beginner

2016-11-02 Thread Jarrod Taylor
I wrote a six part blog series on building a Clojure webapp that may be of 
interest: http://www.jarrodctaylor.com/posts/Compojure-Address-Book-Part-1

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How do I set up database in the context of a web application ?

2016-11-02 Thread Alan Thompson
You can find a nice overview in the Clojure Cookbook

.




On Wed, Nov 2, 2016 at 2:58 PM, 'George' via Clojure <
clojure@googlegroups.com> wrote:

> I'd like to use datomic, but my question applies to any database.
>
> When I used a framework in another language it was easy, the config file
> and ORM did setup the connection. I only installed an adapter and wrote
> the URI of the database..
> Now as I want to use a minimal framework or to totally get rid of the
> framework,  I dont know what is the righ way to set up the connection.
>
> I tried to write the connection details (such as URI, conn and db) in the
> route-handler file and it works.
> But I know that I'm doing something wrong, because I've read that some
> setup is done by leiningen,
> for example in the examples I found about SQL. I searched and couldn't
> find examples for datomic and luminus.
>
> I guess my routes handler file should only require something to import and
> than in each function
>  queries using datomic.api. But datomic.api/q needs a db value, to be
> imported from somewhere.
>
> --
> 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 unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


How do I set up database in the context of a web application ?

2016-11-02 Thread 'George' via Clojure
I'd like to use datomic, but my question applies to any database.

When I used a framework in another language it was easy, the config file 
and ORM did setup the connection. I only installed an adapter and wrote the 
URI of the database..
Now as I want to use a minimal framework or to totally get rid of the 
framework,  I dont know what is the righ way to set up the connection.

I tried to write the connection details (such as URI, conn and db) in the 
route-handler file and it works.
But I know that I'm doing something wrong, because I've read that some 
setup is done by leiningen, 
for example in the examples I found about SQL. I searched and couldn't find 
examples for datomic and luminus.

I guess my routes handler file should only require something to import and 
than in each function
 queries using datomic.api. But datomic.api/q needs a db value, to be 
imported from somewhere.

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Clojure Web Applications for Beginner

2016-11-02 Thread Alan Thompson
You should also checkout the Clojure Cookbook ,
which I highly recommend:



They have an entire chapter on Clojure Webapps:
https://github.com/clojure-cookbook/clojure-cookbook/tree/master/07_webapps
Alan


On Wed, Nov 2, 2016 at 12:41 PM, Erik Assum  wrote:

> This talk is a bit old, but still...
> https://vimeo.com/78909065
>
> Erik.
> --
> i farta
>
> Den 2. nov. 2016 kl. 19.44 skrev 'Rickesh Bedia' via Clojure <
> clojure@googlegroups.com>:
>
> Hi,
>
> I am fairly new to Clojure, only been learning about it for a around 2
> months. I have mainly been spending my time learning through "Clojure for
> the Brave and True", Clojure Koans and 4Clojure. However, I have recently
> been reading about Clojure's use in creating Web Apps. I have been
> following "Web Development with Clojure" by Dmitri Sotnikov but I feel that
> it is still a bit too advanced for me at this time and a lot of the
> concepts and ideas are going over my head.
>
> Is there any other resources that anyone could recommend that would be
> closer to my current knowledge levels or would it be best to carry on with
> my current book?
>
> Thanks in advance.
>
> --
> 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 unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>
> --
> 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 unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Clojure Web Applications for Beginner

2016-11-02 Thread Erik Assum
This talk is a bit old, but still...
https://vimeo.com/78909065

Erik. 
-- 
i farta

> Den 2. nov. 2016 kl. 19.44 skrev 'Rickesh Bedia' via Clojure 
> :
> 
> Hi,
> 
> I am fairly new to Clojure, only been learning about it for a around 2 
> months. I have mainly been spending my time learning through "Clojure for the 
> Brave and True", Clojure Koans and 4Clojure. However, I have recently been 
> reading about Clojure's use in creating Web Apps. I have been following "Web 
> Development with Clojure" by Dmitri Sotnikov but I feel that it is still a 
> bit too advanced for me at this time and a lot of the concepts and ideas are 
> going over my head. 
> 
> Is there any other resources that anyone could recommend that would be closer 
> to my current knowledge levels or would it be best to carry on with my 
> current book?
> 
> Thanks in advance.
> -- 
> 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 unsubscribe from this group and stop receiving emails from it, send an 
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Clojure Web Applications for Beginner

2016-11-02 Thread 'Rickesh Bedia' via Clojure
Hi,

I am fairly new to Clojure, only been learning about it for a around 2 
months. I have mainly been spending my time learning through "Clojure for 
the Brave and True", Clojure Koans and 4Clojure. However, I have recently 
been reading about Clojure's use in creating Web Apps. I have been 
following "Web Development with Clojure" by Dmitri Sotnikov but I feel that 
it is still a bit too advanced for me at this time and a lot of the 
concepts and ideas are going over my head. 

Is there any other resources that anyone could recommend that would be 
closer to my current knowledge levels or would it be best to carry on with 
my current book?

Thanks in advance.

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.