helloworld_ankit v1.0.0
Testing,Documenting,and Linting an API With Jest,JsDoc,Eslinting,Swagger-jsDoc
This project is intended to be used as assignment as to how one would document and test their code and check the coverage of the source code to then turn into API Documentation.
Table of Contents
1. Installation
Setup a new or existing npm package
npm -init -yInstall the Jest dependency: it is for unit testing of our project
npm i -D jestInstall the Jsdoc dependency: it is for documenting our code
npm i -D jsdocInstall the axios dependency: Axios is a Javascript library used to make HTTP requests from node.js or XMLHttpRequests from the browser that also supports the ES6 Promise API.
npm i -D axiosInstall the Swagger-JsDoc and Swagger-ui dependency: it is for api documentation
npm i -D swagger-jsdoc swagger-ui-expressInstall the eslint: it is for format the code in standard manner and remove some common error on its own
npm i -D eslint2. Testing
Testing the project arithmetic
npm run test3. Building the Documentation
Build the jsdoc documentation from the source code
npm run doc4. Release History
- 0.0.1
- Initial release
5 years ago