Ways to develop webapp that uses amber

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

Ways to develop webapp that uses amber

Herby Vojčík
Hello!

To date, there were mainly two way how to arrange app developed (and
then deployed) using amber:

   1. Include amber in your repo, in form of git submodule.
   2. Include amber in your development environment, as a copy*.

I thought, why should you need the copy of amber in your setup at all?
As I see it (fix me if I overlooked something), only thing you need
locally from amber is server.js. So there could be third way:

   3. Include server.js in you development environment, load amber from
external source.**

Should we encourage this style, as well? By giving some example how to
set this up (with instructions to load server.js file only for local use
and pointing <script> to external amber)?

Herby

* not saying if this copy is part of repo or not, and deployment must follow

** Not specifying what external source is, it can be on amber site as
well as on deployment site; the main thing is, it's copy is not needed
in development environment.

--
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: Ways to develop webapp that uses amber

laci
Hi,
My development process and deployment is driven by an ini file - see below.

PackageDirectories - identify the location where a packages will be commited
PackageDirectory - default location where a package is commited in case not listed among PackageDirectories

Deployments - identifies how to build amber deployment file, e.g. amber_KV_PartyManV0a.js

Whenever a package is commited the package files - st, js and deploy.js - saved in the appropriate package directory and the server checks if a deployment file needs to be updated.

Hope this is something useful.
Cheers,
 laci

INI file:
[Properties]
PackageDirectory=amber\amber-master\projects\bootstrap

[PackageDirectories]
KVPartyMan=amber-projects\kidville
 Bootstrap=amber-projects\kidville
 JQGridV0a=amber-projects\kidville
    Cookie=amber-projects\kidville

[Deployments]
KV_PartyManV0a=KV_PartyManV0a_Packages

[KV_PartyManV0a]
   InputDir=amber\amber-master\js
  OutputDir=amber\amber-master\js
InputFiles1=boot.js Kernel-Objects.deploy.js Kernel-Classes.deploy.js Kernel-Methods.deploy.js Kernel-Collections.deploy.js Canvas.deploy.js
InputFiles2=init.js
 OutputFile=amber_KV_PartyManV0a.js

[KV_PartyManV0a_Packages]
KVPartyMan.js=amber-projects\kidville\js
    Cookie.js=amber-projects\kidville\js
 Bootstrap.js=amber-projects\kidville\js
 JQGridV0a.js=amber-projects\kidville\js
  Knockout.js=amber\amber-master\projects\bootstrap\js
Reply | Threaded
Open this post in threaded view
|

Re: Ways to develop webapp that uses amber

Bernat Romagosa
Herby,

I agree with you in that it'd be great if you could use Amber the way you use jQuery (for instance). Just reference a [couple of] javascript href[s] and start coding away.

Is this actually possible with Amber though? I mean, to deploy an application there'd be no problem at all, but during development you need the compiler and the whole IDE loaded... plus a commit-capable server. Not sure if it'd be possible to do that remotely :(


2013/3/4 laci <[hidden email]>
Hi,
My development process and deployment is driven by an ini file - see below.

PackageDirectories - identify the location where a packages will be commited
PackageDirectory - default location where a package is commited in case not
listed among PackageDirectories

Deployments - identifies how to build amber deployment file, e.g.
amber_KV_PartyManV0a.js

Whenever a package is commited the package files - st, js and deploy.js -
saved in the appropriate package directory and the server checks if a
deployment file needs to be updated.

Hope this is something useful.
Cheers,
 laci

INI file:
[Properties]
PackageDirectory=amber\amber-master\projects\bootstrap

[PackageDirectories]
KVPartyMan=amber-projects\kidville
 Bootstrap=amber-projects\kidville
 JQGridV0a=amber-projects\kidville
    Cookie=amber-projects\kidville

[Deployments]
KV_PartyManV0a=KV_PartyManV0a_Packages

[KV_PartyManV0a]
   InputDir=amber\amber-master\js
  OutputDir=amber\amber-master\js
InputFiles1=boot.js Kernel-Objects.deploy.js Kernel-Classes.deploy.js
Kernel-Methods.deploy.js Kernel-Collections.deploy.js Canvas.deploy.js
InputFiles2=init.js
 OutputFile=amber_KV_PartyManV0a.js

[KV_PartyManV0a_Packages]
KVPartyMan.js=amber-projects\kidville\js
    Cookie.js=amber-projects\kidville\js
 Bootstrap.js=amber-projects\kidville\js
 JQGridV0a.js=amber-projects\kidville\js
  Knockout.js=amber\amber-master\projects\bootstrap\js



--
View this message in context: http://forum.world.st/Ways-to-develop-webapp-that-uses-amber-tp4673594p4673676.html
Sent from the Amber Smalltalk mailing list archive at Nabble.com.

--
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: Ways to develop webapp that uses amber

Herby Vojčík
AFAICT, you can load amber (with IDE) remotely. Only thing you need
locally, is server, and it is in one .js file.

Herby

Bernat Romagosa wrote:

> Herby,
>
> I agree with you in that it'd be great if you could use Amber the way
> you use jQuery (for instance). Just reference a [couple of] javascript
> href[s] and start coding away.
>
> Is this actually possible with Amber though? I mean, to deploy an
> application there'd be no problem at all, but during development you
> need the compiler and the whole IDE loaded... plus a commit-capable
> server. Not sure if it'd be possible to do that remotely :(
>
>
> 2013/3/4 laci <[hidden email] <mailto:[hidden email]>>
>
>     Hi,
>     My development process and deployment is driven by an ini file - see
>     below.
>
>     PackageDirectories - identify the location where a packages will be
>     commited
>     PackageDirectory - default location where a package is commited in
>     case not
>     listed among PackageDirectories
>
>     Deployments - identifies how to build amber deployment file, e.g.
>     amber_KV_PartyManV0a.js
>
>     Whenever a package is commited the package files - st, js and
>     deploy.js -
>     saved in the appropriate package directory and the server checks if a
>     deployment file needs to be updated.
>
>     Hope this is something useful.
>     Cheers,
>       laci
>
>     INI file:
>     [Properties]
>     PackageDirectory=amber\amber-master\projects\bootstrap
>
>     [PackageDirectories]
>     KVPartyMan=amber-projects\kidville
>       Bootstrap=amber-projects\kidville
>       JQGridV0a=amber-projects\kidville
>          Cookie=amber-projects\kidville
>
>     [Deployments]
>     KV_PartyManV0a=KV_PartyManV0a_Packages
>
>     [KV_PartyManV0a]
>         InputDir=amber\amber-master\js
>        OutputDir=amber\amber-master\js
>     InputFiles1=boot.js Kernel-Objects.deploy.js Kernel-Classes.deploy.js
>     Kernel-Methods.deploy.js Kernel-Collections.deploy.js Canvas.deploy.js
>     InputFiles2=init.js
>       OutputFile=amber_KV_PartyManV0a.js
>
>     [KV_PartyManV0a_Packages]
>     KVPartyMan.js=amber-projects\kidville\js
>          Cookie.js=amber-projects\kidville\js
>       Bootstrap.js=amber-projects\kidville\js
>       JQGridV0a.js=amber-projects\kidville\js
>        Knockout.js=amber\amber-master\projects\bootstrap\js
>
>
>
>     --
>     View this message in context:
>     http://forum.world.st/Ways-to-develop-webapp-that-uses-amber-tp4673594p4673676.html
>     Sent from the Amber Smalltalk mailing list archive at Nabble.com.
>
>     --
>     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]
>     <mailto:amber-lang%[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: Ways to develop webapp that uses amber

Herby Vojčík
In reply to this post by Bernat Romagosa
In fact, I would really like to see something like AppJet was: you log
in, write some code and have an app running. You do not need even the
server, if you commit your code to online server and then serve it from
there.

Herby

P.S.: Maybe I'll even do something like that, very crude. It is tempting
idea...

Bernat Romagosa wrote:

> Herby,
>
> I agree with you in that it'd be great if you could use Amber the way
> you use jQuery (for instance). Just reference a [couple of] javascript
> href[s] and start coding away.
>
> Is this actually possible with Amber though? I mean, to deploy an
> application there'd be no problem at all, but during development you
> need the compiler and the whole IDE loaded... plus a commit-capable
> server. Not sure if it'd be possible to do that remotely :(
>
>
> 2013/3/4 laci <[hidden email] <mailto:[hidden email]>>
>
>     Hi,
>     My development process and deployment is driven by an ini file - see
>     below.
>
>     PackageDirectories - identify the location where a packages will be
>     commited
>     PackageDirectory - default location where a package is commited in
>     case not
>     listed among PackageDirectories
>
>     Deployments - identifies how to build amber deployment file, e.g.
>     amber_KV_PartyManV0a.js
>
>     Whenever a package is commited the package files - st, js and
>     deploy.js -
>     saved in the appropriate package directory and the server checks if a
>     deployment file needs to be updated.
>
>     Hope this is something useful.
>     Cheers,
>       laci
>
>     INI file:
>     [Properties]
>     PackageDirectory=amber\amber-master\projects\bootstrap
>
>     [PackageDirectories]
>     KVPartyMan=amber-projects\kidville
>       Bootstrap=amber-projects\kidville
>       JQGridV0a=amber-projects\kidville
>          Cookie=amber-projects\kidville
>
>     [Deployments]
>     KV_PartyManV0a=KV_PartyManV0a_Packages
>
>     [KV_PartyManV0a]
>         InputDir=amber\amber-master\js
>        OutputDir=amber\amber-master\js
>     InputFiles1=boot.js Kernel-Objects.deploy.js Kernel-Classes.deploy.js
>     Kernel-Methods.deploy.js Kernel-Collections.deploy.js Canvas.deploy.js
>     InputFiles2=init.js
>       OutputFile=amber_KV_PartyManV0a.js
>
>     [KV_PartyManV0a_Packages]
>     KVPartyMan.js=amber-projects\kidville\js
>          Cookie.js=amber-projects\kidville\js
>       Bootstrap.js=amber-projects\kidville\js
>       JQGridV0a.js=amber-projects\kidville\js
>        Knockout.js=amber\amber-master\projects\bootstrap\js
>
>
>
>     --
>     View this message in context:
>     http://forum.world.st/Ways-to-develop-webapp-that-uses-amber-tp4673594p4673676.html
>     Sent from the Amber Smalltalk mailing list archive at Nabble.com.
>
>     --
>     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]
>     <mailto:amber-lang%[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.