- Adding setup files to configure, set password. - Private key will now be stored in encrypted shares. Password will be required for running the server. - Automated creation of MySQL schema. - Making floGlobals common for both server and client. - Fixed a minor bug in database.js
33 lines
1.3 KiB
JavaScript
33 lines
1.3 KiB
JavaScript
const getInput = require("./getInput");
|
|
|
|
let message = `
|
|
Exchange Market is installed
|
|
To list all commands, use:
|
|
npm run help
|
|
`;
|
|
console.log(message);
|
|
|
|
getInput.YesOrNo('Do you want to finish the setup now').then(value => {
|
|
if (value) {
|
|
let configureSettings = require('./configure-settings');
|
|
configureSettings()
|
|
.then(_ => console.log('To Re-configure, use:'))
|
|
.catch(_ => console.log('Finish the configuration later using: '))
|
|
.finally(_ => {
|
|
console.log('npm run configure');
|
|
getInput.YesOrNo('Do you want to Reset password for private key now').then(value => {
|
|
if (value) {
|
|
let resetPassword = require('./reset-password');
|
|
resetPassword()
|
|
.then(_ => console.log('To reset the password again, use: '))
|
|
.catch(_ => console.log('Reset the password later using: '))
|
|
.finally(_ => {
|
|
console.log('npm run reset-password');
|
|
})
|
|
} else
|
|
console.log('Reset the password later using:\n' + 'npm run reset-password');
|
|
})
|
|
})
|
|
} else
|
|
console.log('Finish the setup later using:\n' + 'npm run setup');
|
|
}) |