- Many thanks to Lena, Adam, and Brai for assistance with the development of our application.
- Many additional thanks to the future contributors who will build upon and maintain the content of our database!
- A Command Line Interface that allows the user to request the docs for an assortment of Node Modules. The CLI will open the users default browser and display the requested documentation.
- GET All - https://module-support.herokuapp.com/mods
- Requires: None
- GET 1 - https://module-support.herokuapp.com/mods/{id}
- Requirements: Must send the record ID as a parameter
- POST - https://module-support.herokuapp.com/mods
- Requirements: Must send the following on the body
{"name": "module name", "mainUrl": "http://www.example.com", "multipleUrl": ["http://www.exampleTwo.com"], "description": "informative description here", "protect": false}
- Requirements: Must send the following on the body
- PUT - https://module-support.herokuapp.com/mods/{id}
- Requirements: Must send the record ID as a parameter as well as the following on the body
{"updateUrl": "http://www.exampl3.com"}
- Requirements: Must send the record ID as a parameter as well as the following on the body
- DELETE - https://module-support.herokuapp.com/mods/{id}
- Requirements: Must send the record ID as a parameter as well as the following on the body
{"deleteRecord": <1 or 0>, "urlToDelete": <index position of desired URL>"}
- Requirements: Must send the record ID as a parameter as well as the following on the body
Command | Description |
---|---|
mod-support |
Access the CLI overview |
mod-support list |
Lists all modules currently in the database |
mod-support l |
Shorthand command for list |
mod-support contribute |
Allows the user to contribute a new module to the database |
mod-support c |
Shorthand command for contribute |
mod-support update |
Allows the user to add an additional document URL to an existing module |
mod-support u |
Shorthand command for update |
mod-support delete |
Allows the user to delete community generated content |
mod-support d |
Shorthand command for delete |
-h |
Added to any other command will provide help for the chosen command |
- Command Line Installation
- Run the following command in the terminal: $
npm install -g mod-support
-g
Flag is used to install globally which will give access from any terminal location.
- Run the following command in the terminal: $