/mysqlDoc

node.js Web-based MySql Documentation tool - inspired by doxygen

Primary LanguageJavaScriptGNU General Public License v2.0GPL-2.0

mysqlDoc

node.js Web-based MySql Documentation tool - inspired by doxygen

For a basic tutorial please visit my website under http://lm-consult.com/wp/projects/mysql-documentation-with-node-js/.

#how-to install

  1. make sure, node.js and npm are installed
  2. run npm install
  3. after successfully installed modules change to /src
  4. open config.js

you will find the folling template:

/**
 * Created by lynmatten on 14.06.14.
 */

var os = require('os');

var config = {};

config.debugLevel = 2;

config.srv = {};

config.srv.port = "9000";
config.srv.env = "development";


config.db = {};
config.db.address = '{localhost or IP}';
config.db.user = '{user}';
config.db.password = '{password}';
config.db.database = '{database}';
config.db.port = '{port}';
config.db.debugMode = true;

config.dbDoc = {};
config.dbDoc.Author = "{your name}";
config.dbDoc.Date = "{date}";
config.dbDoc.Customer = "{customer or owner of database}";

config.dbDoc.Procedures = {};
config.dbDoc.Procedures.Title = "List of Stored Procedures";
config.dbDoc.Procedures.TitleDetail = "This document lists and declares all stored procedures in alphabetical order within the defined database.";
config.dbDoc.Procedures.Version = "1.0";

config.dbDoc.Tables = {};
config.dbDoc.Tables.Title = "List of all Tables";
config.dbDoc.Tables.TitleDetail = "This document lists and declares all tables ";
config.dbDoc.Tables.Version = "1.0";


module.exports = config;

Enter the ip of the database server, which should be normally 127.0.0.1

Also enter login and password and the databse you want to be documented.

Please note that the user need to have access privileges for the general mysql database. If possible, simply use the root account

You can than also change th author, date and the title, details and versions for the documents.

Not just run node /src/bin/www.js and use your prefered web browser to open localhost:9000 to get the information about your site.