diff --git a/package.json b/package.json index a55ddd4..5f00586 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,6 @@ "setup": "node setup/post-install.js", "configure": "node setup/configure-settings.js", "reset-password": "node setup/reset-password.js", - "create-schema": "node setup/create-schema.js", "checksum-db": "node debug/checksum-db.js", "start": "node start.js" }, diff --git a/setup/configure-settings.js b/setup/configure-settings.js index 3a9ac8b..894e65d 100644 --- a/setup/configure-settings.js +++ b/setup/configure-settings.js @@ -51,13 +51,13 @@ function configureSQL() { flaggedYesOrNo('Do you want to re-configure mySQL connection').then(value => { if (value) { console.log('Enter mySQL connection values: ') - getInput.Text('Host', config['sql_host']).then(host => { + getInput.Text('MySQL Host', config['sql_host']).then(host => { config['sql_host'] = host; getInput.Text('Database name', config['sql_db']).then(dbname => { config['sql_db'] = dbname; getInput.Text('MySQL username', config['sql_user']).then(sql_user => { config['sql_user'] = sql_user; - getInput.Text('Mysql password', config['sql_pwd']).then(sql_pwd => { + getInput.Text('MySQL password', config['sql_pwd']).then(sql_pwd => { config['sql_pwd'] = sql_pwd; resolve(true); }) @@ -98,6 +98,7 @@ function configure() { return reject(false); } console.log('Configuration successful!'); + /* if (sql_result) { getInput.YesOrNo('Do you want to create schema in the database').then(value => { if (value) { @@ -113,7 +114,8 @@ function configure() { } }); } else - resolve(true); + */ + resolve(true); }) }) }) diff --git a/setup/help.js b/setup/help.js index bc09103..9169a94 100644 --- a/setup/help.js +++ b/setup/help.js @@ -5,9 +5,8 @@ Exchange market npm install - Install the app and node modules. npm run help - List all commands. npm run setup - Finish the setup (configure and reset password). -npm run configure - Configure the app. +npm run configure - Configure the node. npm run reset-password - Reset the password (for private-key). -npm run create-schema - Create schema in MySQL database. npm start - Start the application (main).