NodeJs and Angular practice codes