#"Javascript web apps with components and one-way data flow"
- Up-to-date Chrome (for Ecma-script 2015 support)
- GIT
- Node 6.x (for the build process)
- Your IDE of choice - why not try VSCode?
- Modules
- ES2015 (string templates, spread, arrow functions etc)
- Rendering a web page from application state (the one-way data flow)
- Updating the state and triggering re-render
- Single-Page-Application routing
- Javascript tests (with Tape)
- Fetch api
We will be building a basic web application using javascript, as vanilla as possible. The application will consist of:
- Back-end API: AlfaLaval items in json-format
- A javascript state & render engine
- A Single-Page-Application start page (index.html) containing:
- A div tag with id="main", where all HTML will be rendered
- A script tag including "app.js", which will take care of the rendering
- Trying modern js techniques
- Hands on with new ES2015 features
- TDD in js
- Understanding the mechanics of react-like frameworks
- Clone repo: https://github.com/jsannerstedt/code-camp
- Run npm install
- Start API (the "json-server" package) using data from db.json: npm run backend
- Start build watcher: npm run watch
- Start web server: npm run server
- if on osx or -nix, npm run dev should do it all
The backend and the start page are provided, so we can focus on the js parts. Have a look at:
- Index.html
- /src/app.js
- /src/components/component1.js
- /test/component1.js
... and start coding!
- Transpiling and Babel
- One-way data flow frameworks (reacts, riot etc)
- Isomorphism
- ... ?