To start the database, run unit tests, stop the database, run the main.py file, and delete all the database data, I need to run specific bash scripts, commands, or copy lines from other scripts (in the case of deleting the database data). Your task is to develop a bash script (and a Windows batch script if you want) which is executable, and that I can invoke by typing the_script_name. The script should allow you to:
Pass the mode, such as database, then more commands like delete_data to delete all the database data. You can decide the actual commands to pass the script - pick whatever is easiest for the end user
The script should support:
Deleting all database data
Start and stop the database
Run unit tests
Run main.py
Stop main.py
Print whether main.py is currently running (if it has been started by the script, or if it has been stopped)
Print whether the database is running, and when the database data was last deleted by the script
Start and stop the npm server which runs in the frontend folder and serves the client side files
Check the config files store appropriate information
You can also do this in Python (including a python package) or a C related language if you like (just something I can run easily)
Let me know if you have any questions, or to know which files the commands to do the above are currently stored in (for example, the commands to manage the database are split across several files)
To start the database, run unit tests, stop the database, run the main.py file, and delete all the database data, I need to run specific bash scripts, commands, or copy lines from other scripts (in the case of deleting the database data). Your task is to develop a bash script (and a Windows batch script if you want) which is executable, and that I can invoke by typing
the_script_name
. The script should allow you to:database
, then more commands likedelete_data
to delete all the database data. You can decide the actual commands to pass the script - pick whatever is easiest for the end userfrontend
folder and serves the client side filesYou can also do this in Python (including a python package) or a C related language if you like (just something I can run easily)
Let me know if you have any questions, or to know which files the commands to do the above are currently stored in (for example, the commands to manage the database are split across several files)