December 2015
Intermediate to advanced
144 pages
3h 37m
English
We could use Cycle.js by including it in an HTML page using <script><script> tags, but that would not be the best way to use it because Cycle.js is designed in an extremely modular way. Every module tries to be as self-sufficient as possible, and including several modules as scripts could easily load tons of duplicated code, causing unnecessary downloads and longer start-up times for our applications.
Instead, we’ll use the Node Package Manager, npm, and Browserify to generate the code for our final scripts. First we’ll create a new folder where the project will live, and install our project dependencies:
| <= | mkdir wikipedia-search && cd wikipedia-search |
| | npm install browserify |
| | npm install @cycle/core |
| | npm install @cycle/dom ... |
Read now
Unlock full access