Node Ecosystem, TDD, CI CD - 401-advanced-javascript-Mai/amman-javascript-401d1 GitHub Wiki

Use Your Computer Like A Developer:

keep the file system organized and git rid of bad habits.


File Naming Rules:

not all systems are case matter or sensitive so must be aware./b do :>>>

  • lowercase for all code file names.
  • use kabob-case to separate multi-words.
  • capitalize if it is important to be first.

Node.js

It is compromised of the V8 Javascript runtime and the NodeAPIs. It is helpful to write code with asynchronous input and output.


package.json

describe the package of node.js, it requires name and version and we can automate using npm init ( then you can complete it ) or npm init -y ( it will skip something for you ). If a package has external dependencies, it is listed under dependencies or devDependencies.


Semantic Versioning

node .js it follows semantic versioning which means how to manage version changes to a software product.


CommonJS modules

the ability to organize the code into small files that define specific functionality using ( module.exports, require).


Test-Driven Development

a methodology for writing code, it broke to three-part: red ( write test ), green ( pass the test ), and refactor(memory optimization and readability)


Running Tests


Continuous Integration(CI) and Continuous Delivery(CD)

CI >>>> regularly merging individually developed features of code into a shared repository. CD >>>>deploying software in short cycles.


Github Actions

used to build and test software projects hosted on GitHub.