Re: [Try-it-now app] Progress thread

2017-11-28 Thread Olaf Krueger
>I will try to get your code working locally first.

If you'll go with this code [1] keep in mind that it was just a quick hack
;-)

Thanks,
Olaf

[1] https://gist.github.com/anonymous/2632b00bf51bc77565657569217c75a4



--
Sent from: http://apache-royale-development.20373.n8.nabble.com/


Re: [Try-it-now app] Progress thread

2017-11-28 Thread OmPrakash Muppirala
Olaf

I will try to get your code working locally first.  Then I will push it to
Erik's vm.

We dont need to figure out the db right away.  I'm sure mongodb or dynamodb
should work.  We can figure that out when we come to that.

Thanks,
Om

On Nov 28, 2017 5:27 AM, "Harbs"  wrote:

> Installing npm on linux is pretty straightforward.
>
> SSH and a few commands should do it…[1]
>
> I think DynamoDB is the easiest way to use NoSQL on AWS.[2] The Free tier
> will probably be enough for the foreseeable future.[3]
>
> Harbs
>
> [1]http://blog.teamtreehouse.com/install-node-js-npm-linux <
> http://blog.teamtreehouse.com/install-node-js-npm-linux>
> [2]https://aws.amazon.com/dynamodb/ 
> [3]https://aws.amazon.com/dynamodb/pricing/  dynamodb/pricing/>
> > On Nov 28, 2017, at 3:15 PM, Erik de Bruin  wrote:
> >
> > Olaf,
> >
> >> The instance has a basic PHP stack on it
> >> Although I'm doing PHP since PHP3 I would prefer to go with NodeJS and a
> >> NoSQL DB here.
> >> I am still learning NodeJS but it seems to me it is straightforward and
> we
> >> also could implement some real time stuff maybe a bit easier. (I think
> in a
> >> more matured try-it-now version some day it would be cool to return the
> >> compiler log in real time to the app instead of just showing a spinner)
> >>
> >> Is it a big task with AWS to create a NodeJS instance and to install
> >> additional npm's?
> >>
> >
> > I put that PHP stack on there, I can take it off easily enough. Anyone I
> > give SSH access to can do it.
> >
> > I do not know enough to create a NodeJS stack, nor am I familiar with
> NoSQL
> > databases. But I'm sure someone else is, and I can provide them access to
> > set it up.
> >
> > If we're not going to use the MySQL database, please let me know
> a.s.a.p.,
> > as that is incurring additional costs on my AWS account.
> >
> > Om, how much of Olaf's requests can you deliver, if I give you the access
> > needed?
> >
> > Thanks,
> >
> > EdB
> >
> >
> >
> > --
> > Ix Multimedia Software
> >
> > Jan Luykenstraat 27
> > 3521 VB Utrecht
> >
> > T. 06-51952295
> > I. www.ixsoftware.nl
>
>


Re: [Try-it-now app] Progress thread

2017-11-28 Thread Harbs
Installing npm on linux is pretty straightforward.

SSH and a few commands should do it…[1]

I think DynamoDB is the easiest way to use NoSQL on AWS.[2] The Free tier will 
probably be enough for the foreseeable future.[3]

Harbs

[1]http://blog.teamtreehouse.com/install-node-js-npm-linux 

[2]https://aws.amazon.com/dynamodb/ 
[3]https://aws.amazon.com/dynamodb/pricing/ 

> On Nov 28, 2017, at 3:15 PM, Erik de Bruin  wrote:
> 
> Olaf,
> 
>> The instance has a basic PHP stack on it
>> Although I'm doing PHP since PHP3 I would prefer to go with NodeJS and a
>> NoSQL DB here.
>> I am still learning NodeJS but it seems to me it is straightforward and we
>> also could implement some real time stuff maybe a bit easier. (I think in a
>> more matured try-it-now version some day it would be cool to return the
>> compiler log in real time to the app instead of just showing a spinner)
>> 
>> Is it a big task with AWS to create a NodeJS instance and to install
>> additional npm's?
>> 
> 
> I put that PHP stack on there, I can take it off easily enough. Anyone I
> give SSH access to can do it.
> 
> I do not know enough to create a NodeJS stack, nor am I familiar with NoSQL
> databases. But I'm sure someone else is, and I can provide them access to
> set it up.
> 
> If we're not going to use the MySQL database, please let me know a.s.a.p.,
> as that is incurring additional costs on my AWS account.
> 
> Om, how much of Olaf's requests can you deliver, if I give you the access
> needed?
> 
> Thanks,
> 
> EdB
> 
> 
> 
> -- 
> Ix Multimedia Software
> 
> Jan Luykenstraat 27
> 3521 VB Utrecht
> 
> T. 06-51952295
> I. www.ixsoftware.nl



Re: [Try-it-now app] Progress thread

2017-11-28 Thread Erik de Bruin
Olaf,

>The instance has a basic PHP stack on it
> Although I'm doing PHP since PHP3 I would prefer to go with NodeJS and a
> NoSQL DB here.
> I am still learning NodeJS but it seems to me it is straightforward and we
> also could implement some real time stuff maybe a bit easier. (I think in a
> more matured try-it-now version some day it would be cool to return the
> compiler log in real time to the app instead of just showing a spinner)
>
> Is it a big task with AWS to create a NodeJS instance and to install
> additional npm's?
>

I put that PHP stack on there, I can take it off easily enough. Anyone I
give SSH access to can do it.

I do not know enough to create a NodeJS stack, nor am I familiar with NoSQL
databases. But I'm sure someone else is, and I can provide them access to
set it up.

If we're not going to use the MySQL database, please let me know a.s.a.p.,
as that is incurring additional costs on my AWS account.

Om, how much of Olaf's requests can you deliver, if I give you the access
needed?

Thanks,

EdB



-- 
Ix Multimedia Software

Jan Luykenstraat 27
3521 VB Utrecht

T. 06-51952295
I. www.ixsoftware.nl


Re: [Try-it-now app] Progress thread

2017-11-28 Thread Olaf Krueger
Hi Erik,

>The instance has a basic PHP stack on it
Although I'm doing PHP since PHP3 I would prefer to go with NodeJS and a
NoSQL DB here.
I am still learning NodeJS but it seems to me it is straightforward and we
also could implement some real time stuff maybe a bit easier. (I think in a
more matured try-it-now version some day it would be cool to return the
compiler log in real time to the app instead of just showing a spinner)

Is it a big task with AWS to create a NodeJS instance and to install
additional npm's?

Thanks,
Olaf




--
Sent from: http://apache-royale-development.20373.n8.nabble.com/


Re: [Try-it-now app] Progress thread

2017-11-28 Thread Olaf Krueger
Hi,

>But, given that we are going to point the site royale.apache.org to a 
>wordpress.com site, we should be able to embed this `Try it out` app from a 
>separately hosted server. 

Ahh... maybe you misunderstood me:
With 'embed' I just mean if we should make the try-it-now app part of the
website with the same look and feel or if we should build something that
looks more like an app than a website an open it in another window.


>I've already offered to host any services the Royale project needs on a
dedicated AWS

This is great and the way we should go these days, thank you!


>Yes, I can take care of all that.  I will install whatever is needed to
make this work. 

Any kind help is really appreciated!!! I still can just work from time to
time on this stuff so it will take some time if we have something that
works.

>Do you need a database? 
We could persist the compiled code by using the filesystem or we go with a
NoSQL database like CouchDB or MongoDB.
Because it is probably really simple to build such a DB instance for
somebody who has AWS knowledge 
we should go with a DB.

I would like to share some thoughts on the server side, maybe you have some
more ideas.
If somebody would like to work on this, go ahead! ;-)

I would provide 3 endpoints at first, maybe something like this:

// Get an URL that points to the compiled entity
GET http:// /compiler/targets/html?sdfsa78ewqwerqw8

// Update a given Royale entity
PUT http:// /compiler/targets/html

// Compile and create a new one
POST http:// /compiler/targets/html

The data transfer would be done via JSON, something like this:

{
   "_id": "...",
   "url": "...",
   "source": "",
   "log": "..."
   ...
}

Thanks,
Olaf


















--
Sent from: http://apache-royale-development.20373.n8.nabble.com/