Overview
Movie information management tool, this is a code practice project following Teacher Yang Xu from B-Zhan, currently the code is divided into two parts, one responsible for organizing and saving movie information in txt format to json format, and the other responsible for managing movie information in json format, supporting the addition, deletion, modification, and querying of movie information.
The first part mainly implements the function of converting txt files to json files, using regular expressions to parse movie information, filtering out empty lines and invalid content, and utilizing the create library to achieve GUI-based txt file reading and json file saving.
The second part implements a simple login function and the addition, deletion, modification, and querying functions for movie information. User and admin roles are set, using the std library to create a .session file to store logged-in users, and performing role checks on the add, modify, and delete functions, where non-admin users cannot execute these actions.
The above is the main content of the course, and next I plan to further expand it by transferring the movie information in json to SQLite, as well as transferring the role information stored in the session to SQLite.