Command line application connecting with local MS Sql Server. Made for university databases course.
-
Install
python3
andMS SQL Server
. -
Download this repository.
-
Run
pip install -r requirements.txt
in main folder to install needed packages. -
- Run
echo "username, password = '[your MS SQL Server username]', '[your MS SQL Server Password]'" > app/settings.py
with substituted your MS SQL Server credentials. - If you can't run above command, just create file in
settings.py
app folder and write thereusername, password = '[your MS SQL Server username]', '[your MS SQL Server Password
. - Attention!
File
app/settings.py
contains your server username and password. Be careful with version controll softwere! Should username and/or password change, you have to repeat this step.
- Run
-
Execute
db_create.sql
to database and fill it with examlpe data. -
Execute
main.py
to start the app.
App menu is printed and user should type in selected number and press Enter
.
User can:
- Insert new data
- Delete records by selected criteria
- Modify records
- Print reports