AngularJs + Golang

4,988 views
Skip to first unread message

Mauro Risonho de Paula Assumpção

unread,
Jan 6, 2014, 8:48:30 PM1/6/14
to golang-nuts

Hi Has anyone managed to successfully use golang and AngularJS?

Some link with source code to be able to study?

Thanks

@firebitsbr

Pranav Raja

unread,
Jan 6, 2014, 8:57:24 PM1/6/14
to golan...@googlegroups.com

Mauro Risonho de Paula Assumpção

unread,
Jan 6, 2014, 9:11:12 PM1/6/14
to Pranav Raja, golang-nuts

Thanks Pranav Raja.

@firebitsbr

--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Karan Misra

unread,
Jan 6, 2014, 9:38:40 PM1/6/14
to golan...@googlegroups.com, Pranav Raja

Erik Troan

unread,
Jan 6, 2014, 10:03:17 PM1/6/14
to Karan Misra, golan...@googlegroups.com, Pranav Raja
I've modified amber (a Jade-list syntax) to work with angular -- https://github.com/pendo-io/amber

Luc Evers

unread,
Jan 8, 2014, 6:37:47 AM1/8/14
to golan...@googlegroups.com, Karan Misra, Pranav Raja
   I should use Angular Dart with GO.


Op dinsdag 7 januari 2014 04:03:17 UTC+1 schreef Erik Troan:

jbergm...@gmail.com

unread,
Jan 8, 2014, 11:34:02 AM1/8/14
to golan...@googlegroups.com
Does anyone know why he uses the anonymous structs for the JSON decoding as opposed to using the Task type directly?

I assume it is to prevent decoding something you don't want to decode like the ID when creating a new task. Is this a common pattern?

He Jianjun

unread,
Jan 8, 2014, 5:20:54 PM1/8/14
to golan...@googlegroups.com
I am building an online shopping site with Golang + AngularJS, I think it's a great combination. 

在 2014年1月6日星期一UTC-8下午5时48分30秒,Mauro Risonho de Paula Assumpção写道:

Carlos Salguero

unread,
Jan 8, 2014, 6:41:50 PM1/8/14
to golan...@googlegroups.com
It's really easy. I'm currently working in a project where the backend is a REST server written in Go and Nginx serving html/js for Angular.js.
You could follow the Angular.js tutorial and write the backend using Martini or Revel
It's really but really easy.
I had the original backend in Python and it must process and serve a huge amount of data (big data using MongoDB). In Python, I was able to process 600 req/min while in Go I'm able to handle 13000 req/min

Francesc Campoy Flores

unread,
Jan 9, 2014, 2:10:14 PM1/9/14
to jbergm...@gmail.com, golan...@googlegroups.com
Hi,

Where exactly do you see that?

Very often I prefer to use anonymous structs when they're not reused anywhere: as in here https://github.com/campoy/todo/blob/master/server/server.go#L79

But Task is already defined so I'd normally reuse it.

I'm preparing a set of screencasts on developing web apps with AngularJS and Go (by the way, the new version of the tour uses that! campoy.cat/gotour)

Cheers,


--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--
--
Francesc Campoy

jbergm...@gmail.com

unread,
Jan 10, 2014, 1:18:56 AM1/10/14
to golan...@googlegroups.com, jbergm...@gmail.com
Specifically, I was looking at NewTask in that same file.

Francesc Campoy Flores

unread,
Jan 13, 2014, 2:09:27 PM1/13/14
to Jeff Bergman, golan...@googlegroups.com
Oh, because I'm decoding just a Title ignoring any other fields that are passed.

If I had to name that type it wouldn't be called Task, it would be NewTaskReq.

Jeff Bergman

unread,
Jan 13, 2014, 6:36:24 PM1/13/14
to Francesc Campoy Flores, golan...@googlegroups.com

Right. That was my guess.

Alan Yang

unread,
Apr 21, 2014, 10:04:43 AM4/21/14
to golan...@googlegroups.com
I developed a web site using AngularJS and Revel. But I found the SEO in the single page application is a big problem. I checked the https://prerender.io/getting-started , but I can't found the middleware for Revel installation. Could you help me how do I contribute that for Revel?

Carlos Salguero於 2014年1月9日星期四UTC+8上午7時41分50秒寫道:
Message has been deleted

Hai Thanh Nguyen

unread,
Apr 21, 2014, 9:07:23 PM4/21/14
to golan...@googlegroups.com
Just read how it works and then read the code of other prerender middlewares.

rand...@gmail.com

unread,
Aug 21, 2014, 11:40:31 PM8/21/14
to golan...@googlegroups.com
Has anyone tried Todo running on a local box? 
I'm not having any luck on the local server.

Francesc Campoy Flores

unread,
Aug 23, 2014, 1:57:50 AM8/23/14
to rand...@gmail.com, golan...@googlegroups.com

What's the error you're getting?
You need the Google App Engine SDK btw

--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Dan Kortschak

unread,
Aug 23, 2014, 3:06:08 AM8/23/14
to rand...@gmail.com, golan...@googlegroups.com
Did you invoke `todo' in the same directory that hold the static dir?
You need to be there.

Bijan Rahnema

unread,
Aug 23, 2014, 4:12:07 AM8/23/14
to golan...@googlegroups.com
I'm currently building two webapps with angular in the front and golang in the backend. 
Works quite well :)

You might also consider emberjs.com as an angular alternative if your app has many pages and subpages with subviews and you need some guidance on how to structure your codebase.

Cheers Bijan

umesh.ve...@gmail.com

unread,
Sep 7, 2014, 11:53:30 AM9/7/14
to golan...@googlegroups.com
How do you escape the {{ }} when you are using revel golang framework while working with angular?

Caleb Spare

unread,
Sep 7, 2014, 5:42:41 PM9/7/14
to umesh.ve...@gmail.com, golang-nuts
I don't know about Revel, but if you're using html/template you can call Delims:

http://golang.org/pkg/html/template/#Template.Delims

Klaus Post

unread,
Sep 8, 2014, 8:08:51 AM9/8/14
to golan...@googlegroups.com, umesh.ve...@gmail.com
Yeah... In revel you simply set template.delimiters = "[[ ]]" in app.conf to change that. I do that, and and it works like a charm.
Reply all
Reply to author
Forward
0 new messages