These are chat archives for canjs/canjs

26th
Feb 2018
Frank Lemanschik
@frank-dspeed
Feb 26 2018 08:18
@abalmush if you want to do it right and fast look into https://donejs.com
its our own Product for this needs
its canjs3 + stealjs + npm
and works most best at present
you should do the following in a empty folder
npm install -g donejs
donejs add app
then you start poriting over your code slowly
while you do donejs develop
in that folder
Andrei Balmus
@abalmush
Feb 26 2018 08:21
is there a lot of stuff needst to be changes if I swith from JSPM to steal?
Frank Lemanschik
@frank-dspeed
Feb 26 2018 08:21
nope
in general you can also use jspm
but i want that you have the same expirence
so steal works simply by reading the package.json
everything that you install in node_modules with a entry in the package.json works out of the box
Andrei Balmus
@abalmush
Feb 26 2018 08:23
We are trying to move to webpack as it’s much faster then jspm, our project is really huge and it takes 3 - 5 mins to compile the UI :D
but yeah let me try to use Steal
Frank Lemanschik
@frank-dspeed
Feb 26 2018 08:23
but you can also install via jspm or anything javascript libs and use them in your code with a path like import jquery from 'myAppName/folderVendor/jquery/jquery.min.js'
the switch to donejs does much more for you
it also adds a feature for example that webpack don't got
like splitted packages
Andrei Balmus
@abalmush
Feb 26 2018 08:24
thats interesting
Frank Lemanschik
@frank-dspeed
Feb 26 2018 08:24
when you use the donejs flow it will auto package your application to only load what it needs
and you also get features like SSR Server Side Rendering
Viktor Busko
@Lighttree
Feb 26 2018 08:25
@frank-dspeed it is possible to get splitted packages with WebPack
Frank Lemanschik
@frank-dspeed
Feb 26 2018 08:25
@Lighttree i know at last everything is possible with everything this days
but the price is higher for webpack as it has as far as i know not a automatic method to chose what to package
Andrei Balmus
@abalmush
Feb 26 2018 08:26
How do you think in comparison with JSPM will it be faster or the same?
I mean build process
Frank Lemanschik
@frank-dspeed
Feb 26 2018 08:26
the build process is slower but the good thing comes first
you don't need to build for development
Andrei Balmus
@abalmush
Feb 26 2018 08:27
oh that make sense
Frank Lemanschik
@frank-dspeed
Feb 26 2018 08:27
and you can also do dev bundles to speed up even more
so steal can load your app without build
Andrei Balmus
@abalmush
Feb 26 2018 08:27
ok I will take a look now
Andrei Balmus
@abalmush
Feb 26 2018 09:07
@frank-dspeed do you know if it possible to create multiple bundles in donejs, trying to find this in documentation and can’t
Frank Lemanschik
@frank-dspeed
Feb 26 2018 09:07
what bundels exactly
do you want to create?
Andrei Balmus
@abalmush
Feb 26 2018 09:08
we have Java based app with some pages like checkout, cart, PDP, PLP
and so on
Frank Lemanschik
@frank-dspeed
Feb 26 2018 09:08
sure its possible to do any bundle combination
and you want to do what exactly?
the info that you got a java app with some pages don't gives me much infos
in general if you got a java application you should turn it into a API only solution
and do the GUI indipendent
so your following the so called Microservice Pattern
Andrei Balmus
@abalmush
Feb 26 2018 09:10
yeah most of the site uses Microservice Pattern but its not easy because we use e-Commerce platfprm called “hybris” (SAP). So some of the pages are static like PLP and we used can.Controls to attache some behavior
Frank Lemanschik
@frank-dspeed
Feb 26 2018 09:10
but here is the detailed documentation about steal maybe you want to know how to create individual packages for your java application parts
@abalmush you can turn such static parts easy into a api
you run the static part isolated as extra server in a docker container or something like that
and code a nodejs api layer over that
that parses the html
on request
Andrei Balmus
@abalmush
Feb 26 2018 09:12
yeah this would great, but this requires extra servers, client wont pay for them :D
so it’s not easy
Frank Lemanschik
@frank-dspeed
Feb 26 2018 09:12
no extra server needed
you can simply run it
Andrei Balmus
@abalmush
Feb 26 2018 09:12
in docker
Frank Lemanschik
@frank-dspeed
Feb 26 2018 09:12
without docker also
it was only a example
Andrei Balmus
@abalmush
Feb 26 2018 09:12
oh ok
Frank Lemanschik
@frank-dspeed
Feb 26 2018 09:13
simply run java on 8080
then run nodejs on 80
and code a api that requests 8080 and returns json
docker was simply the most easy way in my mind to run java isolated
i don't prefer global installed tomcat or java run time
as with docker the version managment is more easy
Andrei Balmus
@abalmush
Feb 26 2018 09:14
Yeah I have to discuss this with our infrastructure engeneers
Frank Lemanschik
@frank-dspeed
Feb 26 2018 09:15
or simply hire me i can save you a lot of time :)
i can pair up with you and do the basic development plan and also apply it directly
Andrei Balmus
@abalmush
Feb 26 2018 09:17
are you looking for part time job? ot full time?
Frank Lemanschik
@frank-dspeed
Feb 26 2018 09:17
i take both
in general i am flexible but i tend to automate as much as i can so when i do my stuff right i should make my self useless
Andrei Balmus
@abalmush
Feb 26 2018 09:19
can I have your resume?
hah le’s talk in privet chat btw :D
Kevin Phillips
@phillipskevin
Feb 26 2018 14:43
@pYr0x do you still want to see that example? or are you using the solution from stackoverflow?
Julian
@pYr0x
Feb 26 2018 20:58
@phillipskevin i remember some example in canjs 2 that david tried to solve with the select html
but i dont remember exactly the problem and if david solved it. Maybe @justinbmeyer knows some more info...