-
Bootstrapping a JavaScript application
Modern workflows often incorporate different build tools, that automate things like preprocessing and hot reloading. It's no secret that JavaScript tooling seems to induce headache in most folks, since the tools can change rapidly and update at a rapid pace. There is, however, wisdom in striding for simplicity in the toolchain, which is why something like browserify can be good for learning the ropes. Things like webpack offer much more but are a bit more harder to learn.
- browserify
- Very "unix" in the way that it does one thing well. However this means that we must find additional solutions for things like CSS and such.
- webpack
- Usage with something like kotatsu is recommended, since webpack can be a reasonably large beast to tackle initially.
- browserify
-
Building ReactJS applications
It's important to base your application around the idea of one-way flow of data. Make sure to keep in mind that the application should always be just a function of the state. Building modern web apps is littered with functional programming paradigms, so you should be prepared to tackle those head on.
- react
- redux
- Do read through the motivation
Do note that this only a part of the application stack, having react and redux only solves the problem with application state and rendering it. You will (usually) need additional libraries for making http requests in a sane manner (don't use
XMLHTTPRequest
directly), libraries for managing and formatting numbers and dates, and most likely you'll end up needing some sort of a router for your front end application.- fetch
- Note that this will eventually be supported by browsers straight off the bat without installing anything. It's per spec!
- moment
- numeral
- react-router-redux
-
Testing Redux applications
We'll want to test the application since we're not savages. From personal experience i've found testing the components themselves as a reasonably non- productive. Much more important (and bug-prone) is the state and mutation of the application.
To focus your testing on that, you'll probably want some sort of a runner for the tests that can generate nice reports. Next up there are also some good to have utilities for testing the stores.
-
Publishing JavaScript applications
Minify the code. Create separate tasks for building the source and keeping tabs on it while you hack away. Usually you'll want to end up with something like:
npm run build
npm run watch
-
Links and articles:
-
Notifications
You must be signed in to change notification settings - Fork 1
Ventures/docker-react-workshop
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published