Amber in a NodeJS application

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
20 messages Options
Reply | Threaded
Open this post in threaded view
|

Amber in a NodeJS application

Bernat Romagosa
Hi list,

I want to use Amber as a module in a node application, so I npm installed it locally and I've taken a long look at the "how to load Amber", but I can't manage to get it working.

I also tried using it as a bower component, but I haven't succeeded either...

I guess I've been away from Amber too long, and so much stuff has changed... what's the proper way to do it?

I have an ExpressJS web application server, from which I'd like to also serve Amber, along with some REST services Amber is supposed to interact with.

Thanks!

Bernat.

--
Bernat Romagosa.

--
You received this message because you are subscribed to the Google Groups "amber-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.
Reply | Threaded
Open this post in threaded view
|

Re: Amber in a NodeJS application

Bernat Romagosa
Ok, as it often happens, right after asking for help I found my solution... :P

Sorry for the mail flood!

(and happy new year to all fellow amberers!)

Bernat.


2014/1/2 Bernat Romagosa <[hidden email]>
Hi list,

I want to use Amber as a module in a node application, so I npm installed it locally and I've taken a long look at the "how to load Amber", but I can't manage to get it working.

I also tried using it as a bower component, but I haven't succeeded either...

I guess I've been away from Amber too long, and so much stuff has changed... what's the proper way to do it?

I have an ExpressJS web application server, from which I'd like to also serve Amber, along with some REST services Amber is supposed to interact with.

Thanks!

Bernat.

--
Bernat Romagosa.



--
Bernat Romagosa.

--
You received this message because you are subscribed to the Google Groups "amber-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.
Reply | Threaded
Open this post in threaded view
|

Re: Amber in a NodeJS application

sebastianconcept
Hi Bernat,

interesting stack.

Question, how do you  plan to debug your amber software in the server side?


On Jan 2, 2014, at 8:30 AM, Bernat Romagosa <[hidden email]> wrote:

Ok, as it often happens, right after asking for help I found my solution... :P

Sorry for the mail flood!

(and happy new year to all fellow amberers!)

Bernat.


2014/1/2 Bernat Romagosa <[hidden email]>
Hi list,

I want to use Amber as a module in a node application, so I npm installed it locally and I've taken a long look at the "how to load Amber", but I can't manage to get it working.

I also tried using it as a bower component, but I haven't succeeded either...

I guess I've been away from Amber too long, and so much stuff has changed... what's the proper way to do it?

I have an ExpressJS web application server, from which I'd like to also serve Amber, along with some REST services Amber is supposed to interact with.

Thanks!

Bernat.

-- 
Bernat Romagosa.



-- 
Bernat Romagosa.

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

--
You received this message because you are subscribed to the Google Groups "amber-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.
Reply | Threaded
Open this post in threaded view
|

Re: Amber in a NodeJS application

Bernat Romagosa
Hi Sebastian!

Well, the server side is plain NodeJS... so you know, debugging pretty much starts and ends with console.log()... but at least the UI is Amber and can be debugged properly! :)


2014/1/2 sebastian <[hidden email]>
Hi Bernat,

interesting stack.

Question, how do you  plan to debug your amber software in the server side?


On Jan 2, 2014, at 8:30 AM, Bernat Romagosa <[hidden email]> wrote:

Ok, as it often happens, right after asking for help I found my solution... :P

Sorry for the mail flood!

(and happy new year to all fellow amberers!)

Bernat.


2014/1/2 Bernat Romagosa <[hidden email]>
Hi list,

I want to use Amber as a module in a node application, so I npm installed it locally and I've taken a long look at the "how to load Amber", but I can't manage to get it working.

I also tried using it as a bower component, but I haven't succeeded either...

I guess I've been away from Amber too long, and so much stuff has changed... what's the proper way to do it?

I have an ExpressJS web application server, from which I'd like to also serve Amber, along with some REST services Amber is supposed to interact with.

Thanks!

Bernat.

-- 
Bernat Romagosa.



-- 
Bernat Romagosa.

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

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



--
Bernat Romagosa.

--
You received this message because you are subscribed to the Google Groups "amber-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.
Reply | Threaded
Open this post in threaded view
|

Re: Amber in a NodeJS application

sebastianconcept
Right.

By "debugged properly" I guess you mean reading/writing clean smalltalk code in a smalltalk browser?

I mean, we don't have yet the stepping debugger available for nodejs-amber software, do we?


On Jan 2, 2014, at 9:43 AM, Bernat Romagosa <[hidden email]> wrote:

Hi Sebastian!

Well, the server side is plain NodeJS... so you know, debugging pretty much starts and ends with console.log()... but at least the UI is Amber and can be debugged properly! :)


2014/1/2 sebastian <[hidden email]>
Hi Bernat,

interesting stack.

Question, how do you  plan to debug your amber software in the server side?


On Jan 2, 2014, at 8:30 AM, Bernat Romagosa <[hidden email]> wrote:

Ok, as it often happens, right after asking for help I found my solution... :P

Sorry for the mail flood!

(and happy new year to all fellow amberers!)

Bernat.


2014/1/2 Bernat Romagosa <[hidden email]>
Hi list,

I want to use Amber as a module in a node application, so I npm installed it locally and I've taken a long look at the "how to load Amber", but I can't manage to get it working.

I also tried using it as a bower component, but I haven't succeeded either...

I guess I've been away from Amber too long, and so much stuff has changed... what's the proper way to do it?

I have an ExpressJS web application server, from which I'd like to also serve Amber, along with some REST services Amber is supposed to interact with.

Thanks!

Bernat.

-- 
Bernat Romagosa.



-- 
Bernat Romagosa.

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


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



--
Bernat Romagosa.

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

--
You received this message because you are subscribed to the Google Groups "amber-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.
Reply | Threaded
Open this post in threaded view
|

Re: Amber in a NodeJS application

Bernat Romagosa
That's what I mean, yep. We're not able to tinker with state yet, but we can inspect everything in real-time, which is a big win over plain JS...


2014/1/2 sebastian <[hidden email]>
Right.

By "debugged properly" I guess you mean reading/writing clean smalltalk code in a smalltalk browser?

I mean, we don't have yet the stepping debugger available for nodejs-amber software, do we?


On Jan 2, 2014, at 9:43 AM, Bernat Romagosa <[hidden email]> wrote:

Hi Sebastian!

Well, the server side is plain NodeJS... so you know, debugging pretty much starts and ends with console.log()... but at least the UI is Amber and can be debugged properly! :)


2014/1/2 sebastian <[hidden email]>
Hi Bernat,

interesting stack.

Question, how do you  plan to debug your amber software in the server side?


On Jan 2, 2014, at 8:30 AM, Bernat Romagosa <[hidden email]> wrote:

Ok, as it often happens, right after asking for help I found my solution... :P

Sorry for the mail flood!

(and happy new year to all fellow amberers!)

Bernat.


2014/1/2 Bernat Romagosa <[hidden email]>
Hi list,

I want to use Amber as a module in a node application, so I npm installed it locally and I've taken a long look at the "how to load Amber", but I can't manage to get it working.

I also tried using it as a bower component, but I haven't succeeded either...

I guess I've been away from Amber too long, and so much stuff has changed... what's the proper way to do it?

I have an ExpressJS web application server, from which I'd like to also serve Amber, along with some REST services Amber is supposed to interact with.

Thanks!

Bernat.

-- 
Bernat Romagosa.



-- 
Bernat Romagosa.

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


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



--
Bernat Romagosa.

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

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



--
Bernat Romagosa.

--
You received this message because you are subscribed to the Google Groups "amber-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.
Reply | Threaded
Open this post in threaded view
|

Re: Amber in a NodeJS application

sebastianconcept
On Jan 2, 2014, at 9:54 AM, Bernat Romagosa <[hidden email]> wrote:

we can inspect everything in real-time

wait, you mean we have inspectors on server side objects? we can set a halt and inspect stuff?



--
You received this message because you are subscribed to the Google Groups "amber-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.
Reply | Threaded
Open this post in threaded view
|

Re: Amber in a NodeJS application

Bernat Romagosa
nope, on client-side objects :)


2014/1/2 sebastian <[hidden email]>
On Jan 2, 2014, at 9:54 AM, Bernat Romagosa <[hidden email]> wrote:

we can inspect everything in real-time

wait, you mean we have inspectors on server side objects? we can set a halt and inspect stuff?



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



--
Bernat Romagosa.

--
You received this message because you are subscribed to the Google Groups "amber-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.
Reply | Threaded
Open this post in threaded view
|

Re: Amber in a NodeJS application

sebastianconcept
yeah in front-end  amber rocks hands down

I can't wait for it to do its thing on the back end



On Jan 2, 2014, at 10:09 AM, Bernat Romagosa <[hidden email]> wrote:

nope, on client-side objects :)


2014/1/2 sebastian <[hidden email]>
On Jan 2, 2014, at 9:54 AM, Bernat Romagosa <[hidden email]> wrote:

we can inspect everything in real-time

wait, you mean we have inspectors on server side objects? we can set a halt and inspect stuff?




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



--
Bernat Romagosa.

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

--
You received this message because you are subscribed to the Google Groups "amber-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.
Reply | Threaded
Open this post in threaded view
|

Re: Amber in a NodeJS application

Herby Vojčík
In reply to this post by Bernat Romagosa


Bernat Romagosa wrote:
> Hi Sebastian!
>
> Well, the server side is plain NodeJS... so you know, debugging pretty
> much starts and ends with console.log()... but at least the UI is Amber

Not that I tried it, but node.js has remote debugging built-in, and
AFAICT WebStorm is able to debug node.js project with all the usual
tricks (breakpoints, stepping, ...).

> and can be debugged properly! :)
>
> --
> Bernat Romagosa.

Herby

--
You received this message because you are subscribed to the Google Groups "amber-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.
Reply | Threaded
Open this post in threaded view
|

Re: Amber in a NodeJS application

Herby Vojčík
In reply to this post by Bernat Romagosa


Bernat Romagosa wrote:
> Ok, as it often happens, right after asking for help I found my
> solution... :P

Did you only want to _serve_ Amber, or also run Amber in parallel with
your ExpressJS app? I can imagine solving the former, but AFAICT Amber
is not very well suited to be embedded as in the latter. If it was the
latter, I'd be interested in how you solved it.

> Bernat.

Herby

--
You received this message because you are subscribed to the Google Groups "amber-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.
Reply | Threaded
Open this post in threaded view
|

Re: Amber in a NodeJS application

Nicolas Petton
In reply to this post by sebastianconcept
Hi Sebastian,

I know that you're waiting for it :)
It's just a matter of time until we get there!

Cheers,
Nico

sebastian writes:

> yeah in front-end  amber rocks hands down
>
> I can't wait for it to do its thing on the back end
>
>
>
> On Jan 2, 2014, at 10:09 AM, Bernat Romagosa <[hidden email]> wrote:
>
>> nope, on client-side objects :)
>>
>>
>> 2014/1/2 sebastian <[hidden email]>
>> On Jan 2, 2014, at 9:54 AM, Bernat Romagosa <[hidden email]> wrote:
>>
>>> we can inspect everything in real-time
>>
>> wait, you mean we have inspectors on server side objects? we can set a halt and inspect stuff?
>>
>>
>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups "amber-lang" group.
>> To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>
>> --
>> Bernat Romagosa.
>>
>> --
>> You received this message because you are subscribed to the Google Groups "amber-lang" group.
>> To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
>> For more options, visit https://groups.google.com/groups/opt_out.


--
Nicolas Petton
http://nicolas-petton.fr

--
You received this message because you are subscribed to the Google Groups "amber-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.
Reply | Threaded
Open this post in threaded view
|

Re: Amber in a NodeJS application

sebastianconcept
:D

Keep doing that great job!



On Jan 3, 2014, at 10:42 AM, Nicolas Petton <[hidden email]> wrote:

> Hi Sebastian,
>
> I know that you're waiting for it :)
> It's just a matter of time until we get there!
>
> Cheers,
> Nico
>
> sebastian writes:
>
>> yeah in front-end  amber rocks hands down
>>
>> I can't wait for it to do its thing on the back end
>>
>>
>>
>> On Jan 2, 2014, at 10:09 AM, Bernat Romagosa <[hidden email]> wrote:
>>
>>> nope, on client-side objects :)
>>>
>>>
>>> 2014/1/2 sebastian <[hidden email]>
>>> On Jan 2, 2014, at 9:54 AM, Bernat Romagosa <[hidden email]> wrote:
>>>
>>>> we can inspect everything in real-time
>>>
>>> wait, you mean we have inspectors on server side objects? we can set a halt and inspect stuff?
>>>
>>>
>>>
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups "amber-lang" group.
>>> To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>>
>>>
>>> --
>>> Bernat Romagosa.
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups "amber-lang" group.
>>> To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
>>> For more options, visit https://groups.google.com/groups/opt_out.
>
>
> --
> Nicolas Petton
> http://nicolas-petton.fr
>
> --
> You received this message because you are subscribed to the Google Groups "amber-lang" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
> For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "amber-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.
Reply | Threaded
Open this post in threaded view
|

Re: Amber in a NodeJS application

Bernat Romagosa
Did you only want to _serve_ Amber, or also run Amber in parallel with your ExpressJS app? I can imagine solving the former, but AFAICT Amber is not very well suited to be embedded as in the latter. If it was the latter, I'd be interested in how you solved it.

Well, the idea is to have the backend communicate with the frontend and vice-versa. The backend is full NodeJS, and the frontend is full Amber.

Amber→Node is achieved via AJAX calls. I haven't digged into the other way around yet, but I'll keep you guys posted :)


2014/1/3 sebastian <[hidden email]>
:D

Keep doing that great job!



On Jan 3, 2014, at 10:42 AM, Nicolas Petton <[hidden email]> wrote:

> Hi Sebastian,
>
> I know that you're waiting for it :)
> It's just a matter of time until we get there!
>
> Cheers,
> Nico
>
> sebastian writes:
>
>> yeah in front-end  amber rocks hands down
>>
>> I can't wait for it to do its thing on the back end
>>
>>
>>
>> On Jan 2, 2014, at 10:09 AM, Bernat Romagosa <[hidden email]> wrote:
>>
>>> nope, on client-side objects :)
>>>
>>>
>>> 2014/1/2 sebastian <[hidden email]>
>>> On Jan 2, 2014, at 9:54 AM, Bernat Romagosa <[hidden email]> wrote:
>>>
>>>> we can inspect everything in real-time
>>>
>>> wait, you mean we have inspectors on server side objects? we can set a halt and inspect stuff?
>>>
>>>
>>>
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups "amber-lang" group.
>>> To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>>
>>>
>>> --
>>> Bernat Romagosa.
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups "amber-lang" group.
>>> To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
>>> For more options, visit https://groups.google.com/groups/opt_out.
>
>
> --
> Nicolas Petton
> http://nicolas-petton.fr
>
> --
> You received this message because you are subscribed to the Google Groups "amber-lang" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
> For more options, visit https://groups.google.com/groups/opt_out.

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



--
Bernat Romagosa.

--
You received this message because you are subscribed to the Google Groups "amber-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.
Reply | Threaded
Open this post in threaded view
|

Re: Amber in a NodeJS application

Manfred Kröhnert
In reply to this post by Herby Vojčík
Hi,



On Thu, Jan 2, 2014 at 1:37 PM, Herby Vojčík <[hidden email]> wrote:


Bernat Romagosa wrote:
Hi Sebastian!

Well, the server side is plain NodeJS... so you know, debugging pretty
much starts and ends with console.log()... but at least the UI is Amber

Not that I tried it, but node.js has remote debugging built-in, and AFAICT WebStorm is able to debug node.js project with all the usual tricks (breakpoints, stepping, ...).


I remember that Nico was able to run the IDE for Amber based Node.JS applications via node-webkit.
@Nico: do you still remember how you did it?

Best,
Manfred

 
and can be debugged properly! :)

--
Bernat Romagosa.

Herby


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

--
You received this message because you are subscribed to the Google Groups "amber-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.
Reply | Threaded
Open this post in threaded view
|

Re: Amber in a NodeJS application

Herby Vojčík
In reply to this post by Bernat Romagosa


Bernat Romagosa wrote:
>     Did you only want to _serve_ Amber, or also run Amber in parallel
>     with your ExpressJS app? I can imagine solving the former, but
>     AFAICT Amber is not very well suited to be embedded as in the
>     latter. If it was the latter, I'd be interested in how you solved it.
>
>
> Well, the idea is to have the backend communicate with the frontend and
> vice-versa. The backend is full NodeJS, and the frontend is full Amber.

So you only wanted to serve Amber. Yes, for that case it is just setting
up a static route for file serving.

> Amber→Node is achieved via AJAX calls. I haven't digged into the other
> way around yet, but I'll keep you guys posted :)

Well, socket.io or something... never tried in Amber ;-)

> --
> Bernat Romagosa.

Herby

--
You received this message because you are subscribed to the Google Groups "amber-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.
Reply | Threaded
Open this post in threaded view
|

Re: Amber in a NodeJS application

Kumar
In reply to this post by sebastianconcept
If you're relying on console.log for debugging, do checkout [node-inspector]
You get a full JS debugger for your node project running in Chrome.
You can also debug remotely. It supports source maps, live code editing,
and save edits to server.

[node-inspector]: https://github.com/node-inspector/node-inspector

On Thursday, January 2, 2014 5:40:57 PM UTC+5:30, Sebastian Sastre wrote:
yeah in front-end  amber rocks hands down

I can't wait for it to do its thing on the back end



On Jan 2, 2014, at 10:09 AM, Bernat Romagosa <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="Pv8NnGKqd0AJ" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">tibabenfor...@gmail.com> wrote:

nope, on client-side objects :)


2014/1/2 sebastian <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="Pv8NnGKqd0AJ" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">sebastia...@...>
On Jan 2, 2014, at 9:54 AM, Bernat Romagosa <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="Pv8NnGKqd0AJ" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">tibabenfor...@gmail.com> wrote:

we can inspect everything in real-time

wait, you mean we have inspectors on server side objects? we can set a halt and inspect stuff?




--
You received this message because you are subscribed to the Google Groups "amber-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="Pv8NnGKqd0AJ" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">amber-lang+...@googlegroups.com.
For more options, visit <a href="https://groups.google.com/groups/opt_out" target="_blank" onmousedown="this.href='https://groups.google.com/groups/opt_out';return true;" onclick="this.href='https://groups.google.com/groups/opt_out';return true;">https://groups.google.com/groups/opt_out.



--
Bernat Romagosa.

--
You received this message because you are subscribed to the Google Groups "amber-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="Pv8NnGKqd0AJ" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">amber-lang+...@googlegroups.com.
For more options, visit <a href="https://groups.google.com/groups/opt_out" target="_blank" onmousedown="this.href='https://groups.google.com/groups/opt_out';return true;" onclick="this.href='https://groups.google.com/groups/opt_out';return true;">https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "amber-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.
Reply | Threaded
Open this post in threaded view
|

Re: Amber in a NodeJS application

Bernat Romagosa

I'll check it out, thanks a lot! :)

On Jan 5, 2014 5:52 AM, "Srikumar Subramanian" <[hidden email]> wrote:
If you're relying on console.log for debugging, do checkout [node-inspector]
You get a full JS debugger for your node project running in Chrome.
You can also debug remotely. It supports source maps, live code editing,
and save edits to server.

[node-inspector]: https://github.com/node-inspector/node-inspector

On Thursday, January 2, 2014 5:40:57 PM UTC+5:30, Sebastian Sastre wrote:
yeah in front-end  amber rocks hands down

I can't wait for it to do its thing on the back end



On Jan 2, 2014, at 10:09 AM, Bernat Romagosa <tibabenfor...@gmail.com> wrote:

nope, on client-side objects :)


2014/1/2 sebastian <[hidden email]>
On Jan 2, 2014, at 9:54 AM, Bernat Romagosa <tibabenfor...@gmail.com> wrote:

we can inspect everything in real-time

wait, you mean we have inspectors on server side objects? we can set a halt and inspect stuff?




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



--
Bernat Romagosa.

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

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

--
You received this message because you are subscribed to the Google Groups "amber-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.
Reply | Threaded
Open this post in threaded view
|

Re: Amber in a NodeJS application

Nicolas Petton
In reply to this post by Manfred Kröhnert

Manfred Kröhnert writes:
>
> I remember that Nico was able to run the IDE for Amber based Node.JS
> applications via node-webkit.
> @Nico: do you still remember how you did it?

Yes, I started Helios on node using node-webkit
https://github.com/rogerwang/node-webkit

AFAICT it worked quite fine, I didn't look very deep though.

Cheers,
Nico

--
You received this message because you are subscribed to the Google Groups "amber-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.
Reply | Threaded
Open this post in threaded view
|

Re: Amber in a NodeJS application

sebastianconcept
In reply to this post by Bernat Romagosa
socket.io sounds great for a wider browser support (and your backend is nodejs-based)

and have in mind that if you are in the prototype stage you can do wonders with WebSockets alone

When I was playing around with ws I did this:

you can open 2 browsers on it and play around



On Jan 4, 2014, at 5:50 PM, Bernat Romagosa <[hidden email]> wrote:

Did you only want to _serve_ Amber, or also run Amber in parallel with your ExpressJS app? I can imagine solving the former, but AFAICT Amber is not very well suited to be embedded as in the latter. If it was the latter, I'd be interested in how you solved it.

Well, the idea is to have the backend communicate with the frontend and vice-versa. The backend is full NodeJS, and the frontend is full Amber.

Amber→Node is achieved via AJAX calls. I haven't digged into the other way around yet, but I'll keep you guys posted :)


2014/1/3 sebastian <[hidden email]>
:D

Keep doing that great job!



On Jan 3, 2014, at 10:42 AM, Nicolas Petton <[hidden email]> wrote:

> Hi Sebastian,
>
> I know that you're waiting for it :)
> It's just a matter of time until we get there!
>
> Cheers,
> Nico
>
> sebastian writes:
>
>> yeah in front-end  amber rocks hands down
>>
>> I can't wait for it to do its thing on the back end
>>
>>
>>
>> On Jan 2, 2014, at 10:09 AM, Bernat Romagosa <[hidden email]> wrote:
>>
>>> nope, on client-side objects :)
>>>
>>>
>>> 2014/1/2 sebastian <[hidden email]>
>>> On Jan 2, 2014, at 9:54 AM, Bernat Romagosa <[hidden email]> wrote:
>>>
>>>> we can inspect everything in real-time
>>>
>>> wait, you mean we have inspectors on server side objects? we can set a halt and inspect stuff?
>>>
>>>
>>>
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups "amber-lang" group.
>>> To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>>
>>>
>>> --
>>> Bernat Romagosa.
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups "amber-lang" group.
>>> To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
>>> For more options, visit https://groups.google.com/groups/opt_out.
>
>
> --
> Nicolas Petton
> http://nicolas-petton.fr
>
> --
> You received this message because you are subscribed to the Google Groups "amber-lang" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
> For more options, visit https://groups.google.com/groups/opt_out.

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



--
Bernat Romagosa.

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

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