Full-Stack Fundamentals

28 views
Skip to first unread message

Adrian Rossouw

unread,
Apr 15, 2014, 8:26:01 PM4/15/14
to nod...@googlegroups.com
I’ve started a series of posts that explain the underlying
concepts at play on each layer of the webdev stack, and
how they all interact with each other.

I’ll have mostly weekly posts about the subject, that will be
tackling the whole problem space at a pretty leisurely pace.



Ian Petzer

unread,
Apr 16, 2014, 1:26:53 AM4/16/14
to nod...@googlegroups.com
Looks cool Adrian!

Nice work


--
You received this message because you are subscribed to the Google Groups "Node Cape Town" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nodecpt+u...@googlegroups.com.
To post to this group, send email to nod...@googlegroups.com.
Visit this group at http://groups.google.com/group/nodecpt.
For more options, visit https://groups.google.com/d/optout.

Jens Eggers

unread,
Apr 17, 2014, 3:18:59 AM4/17/14
to nod...@googlegroups.com
Great idea, looking forward to it!

Jörg Diekmann

unread,
Apr 17, 2014, 3:22:59 AM4/17/14
to nod...@googlegroups.com
Cool - subscribed!

Connor Leech

unread,
Apr 24, 2014, 8:45:59 AM4/24/14
to nod...@googlegroups.com
This looks awesome! I've been struggling with node - angular file upload. any guidance on that would be greatly appreciated

Adrian Rossouw

unread,
Apr 24, 2014, 9:01:44 AM4/24/14
to nod...@googlegroups.com

On 24 Apr 2014, at 2:45 PM, Connor Leech <conno...@gmail.com> wrote:

This looks awesome! I've been struggling with node - angular file upload. any guidance on that would be greatly appreciated


So the problem is that you are not really able to do that via classical
ajax requests.

In just normal html, you would generally have a <form method=‘post’ action=‘/api/path’>, 
which would either refresh the whole page, or you could target it to an iframe.

The reasoning is that you aren’t actually passing the file as text into the browser window, but rather instructing the browser to read the data value from this file when it does the submission process. It doesn’t touch the javascript.

You can however use a sort of alternate api called FormData


This seems to be a file upload directive (from a quick glance only), 
that implements this alternate api and a flash polyfill of some sort,
so that the data can actually go into your client side js for it
to work


This is another useful issue that explains a possibility. (note, it’s using FormData)

http://stackoverflow.com/questions/13963022/angularjs-how-to-implement-a-simple-file-upload-with-multipart-form

There also seems to be some difference in how angular does it’s content type
headers, which both seems to be a recurring theme.




—-

Adrian Rossouw. “Sensible Complexity”
- Full-Stack JavaScript Developer and Open Source Enthusiast

Website   | http://daemon.co.za
Twitter   | @AdrianRossouw
GitHub    | Vertice

Connor Leech

unread,
Apr 29, 2014, 8:40:59 AM4/29/14
to nod...@googlegroups.com
got it. Thanks for the resources

Marcin Jekot

unread,
Apr 29, 2014, 12:33:43 PM4/29/14
to nod...@googlegroups.com
Adrian, this is very cool... do you have any plans to cover testing? I find it's the area I struggle with the most in any environment, and could really use some help in that direction. But maybe this is one of those areas that's already covered quite a bit on the webs.


Adrian Rossouw

unread,
Apr 29, 2014, 12:44:06 PM4/29/14
to nod...@googlegroups.com

On 29 Apr 2014, at 6:33 PM, Marcin Jekot <mar...@jekot.net> wrote:

Adrian, this is very cool... do you have any plans to cover testing

It’s going to take months before there’s even really a program to
commit into version control.

The first “unit”, as it were, is only going to reach the point where
you would be after running a yeoman generator.

I might go into what testing is and why you do it (including what
formal testing is, what behaviour you can and can’t test for), but
testing as in wiring up mocha or jasmine or what not, isn’t something
I will specifically cover.

I’m trying not to rewrite stuff that already exists, so I will
link to a lot of the more practical tutorial stuff in this format:


(i’m actually starting to work for wayfinder in may, btw)
Reply all
Reply to author
Forward
0 new messages