Sustainable Computing Research Group (SCoRe)
[Bassa] Create a shell script to store database credentials in a config file
Bassa setup is currently scattered around multiple scripts and few manual processes. This task is a part of a larger process to to the whole installation process.
Create a script called scripts/database-credentials.sh in project root.
This script should prompt the user to enter Database type, port, ip, database name, database user name and database password.
When prompting following defaults should used. These defaults should be clearly conveyed to a user when he/she is using the script
database_port: 3306
database_ip: 127.0.0.1
database_name: bassa
Once these data has been fetched, they should be written out a file named, bassa.yml in project root
Structure of bassa.yml should be as follows
database:
database_type: mysql
database_port: 3306
database_ip: 127.0.0.1
database_name: bassa
database_user_username: bassaman
databse_user_password: b@ss@
Send a pull request to Bassa repository when complete and submit the link
Task tags
Students who completed this task
Padam Chopra