Exercise repo (teacher)
This is details on how to get hold of the teachers exercise repo that contains some useful example programs that shows how to write code and use various modules in the node environment.
Use this repo all through the course to "learn coding from examples".
Clone the teacher exercise repo
The teacher has a collection of exercises and example programs that are used all through the course. These are in the repo "Examples part B".
You can clone this repo and use it as you wish. There might be some useful example programs in it.
The repo might be updated all through the course so make a git pull
each time before starting to work with an example.
The first example programs
Start small and check out the first example program that shows how to create a main-program in node and run it together with classes and modules.
src/main shows a hello world and how to write a main function or not.
src/modules/es-import-class how to write a class in a separate file and include it.
src/modules/es-import-module how to write a module in a separate file and include it.