This is the final project of the "Special topics" lesson in the university.
There are 2 types of users in this program with different capablities:
- Regular users
- Admin users
Regular users are able to:
- See a table of available bikes
- Return a bike of their own
- Rent a bike for themselves
- See a table of their own bikes
Admins are able to:
- See a table of available bikes
- See a table of rented bikes
- Return a bike of their own
- Rent a bike for themselves
- Add a bike to the table of bikes
- Charge an electric bike
- See a table of all the bikes
- See a table of all the users
- Set a user as admin
- See a table of their own bikes
- Usernames can not contain "Space"
- Passwords must be at least 8 characters
- Serial number of the bikes can not contain "Space"
- No user is allowed to rent more than 3 bikes
This is used to create the database using SQLite and interact with it.
This function is used to get input from the user without the need for pressing "Enter"
This module is used to print tables in the terminal
This function is used to run commands in the terminal.
In this project, I used it to clear the terminal screen at some points.
This function is used to get the operating system of the user.
To clear the terminal in windows, we use the command "cls". However, in Linux and MAC we use "clear".
Though, we need to get the os of the user to know which of these commands should we run in terminal, using the previously explained function.