Expert System is a School 42 project. The purpose of this project is to create a propositional calculus expert system.
expert_system.en.pdf
is the task file.
This project has wiki-pages with explanations and tips.
It is a Node.js project. So installed Node.js and npm are required:
- Node.js — 12 (
node --version
) - npm — >= 5 (
npm --version
)
Note: npm is installed with Node.js.
Note: nvm can be used to install a required version of Node.js.
.nvmrc
is present.
Clone repository:
git clone <repository url>
Then go into the created directory and install node_modules
:
npm install
Usage: node ./index.js <file-path>
Options:
--verbose, -v Run with verbose logging [boolean] [default: false]
--color, -c Enable colorful output [boolean] [default: false]
--help Show help [boolean]
To run unit tests use:
npm test
To get the detailed report about the code coverage of each file run:
npm run test:coverage
To get the summary report use:
npm run test:coverage:summary