Sustainable Computing Research Group (SCoRe)

[Bassa] Create bassa db setup script

Bassa setup is currently scattered around multiple scripts and few manual processes. This task is a part of a larger process to automate the installation of Bassa.

Create a python script called scripts\init-database.py in Bassa root directory This script should parse the .config/bassa/config.yml file and get the database username, password, database type, etc which will be in config.yml 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@

Then a database user should be created with the above information. When this is done, db.sql file should be imported to the Bassa db through the python script.

Submit a pull request to Bassa repository with the above script and comment the link here

Task tags

  • python
  • bassa

Students who completed this task

Padam Chopra

Task type

  • code Code
close

2017