Technical requirements
The implemented framework code is in the book repository at https://github.com/PacktPublishing/Building-Your-Own-JavaScript-Framework. The code for our sample framework is included in the chapter6
directory. To follow the implementation explanation in this chapter, it is recommended to follow along with the framework files in the chapter directory.
To run the code, make sure to have Node.js v20 or higher installed (you can download it from nodejs.org). To make it easier to manage different versions of Node.js, you can use a Node.js version manager tool such as nvm
(github.com/nvm-sh/nvm). Running nvm
will automatically install the appropriate version of Node.js from the framework project directory, as the project is configured and tested for a particular version. Make sure to run npm install
to fetch the project’s dependencies. Running npm test
should output a set of passing tests. This means that your local configuration is all correctly set up. The...