A React-based application for managing and tracking degree progress, featuring course management and degree planning capabilities.
- Node.js (latest stable version)
- npm (comes with Node.js)
- Clone the repository:
git clone <repository-url>
cd blackhole
- Install dependencies:
npm install
pip install python3
pip install -r requirements.txt
- Start the development server:
npm run start
The application will open in your default browser at http://localhost:3000
- Username: 2
- Password: 2
- Description: Total: 17 Test Cases
- Test Steps:
- Run the test_cases.py file.
cd backend
```bash
python test_cases.py
- Expected Output: Python will output a message like:
Ran 17 tests in *seconds*
OK
- Check the function definitions in test_cases.py for details about each specific test case.
There are two test cases for the database under the \server directory: - mixue_bao_test_case_1.py - used to run the test case for fetching all classes from MongoDB database - mixue_bao_test_case_2.py - used to run the test case to fetch a single class from the MongoDB database with filter
Running these test cases will connect to the database, execute the query, and print the results.
- Test Steps:
- to run Test Case 1, type in "python mixue_bao_test_case_1.py" in command line
cd server
python mixue_bao_test_case_1.py
- to run Test Case 2, type in "python mixue_bao_test_case_2.py" in command line
cd server
python mixue_bao_test_case_2.py
- will need to wait a few seconds to connect to database in each test case
- Description: User can view completed courses in their CS degree plan
- Test Steps:
- Launch the application
- Log in using the credentials:
- Username: 2
- Password: 2
- On the home dashboard, navigate to Plan Schedule.
- Select courses taken.
- Example Test Cases:
- Select all classes up to CS 3354.
- Sorting works in both ascending and descending order
- Select only freshman first-semester classes (up to CS 2305).
- Description: User can view a visual flowchart showcasing remaining classes in the degree plan.
- Test Steps:
- From the Plan Schedule interface, after selecting completed classes, choose Visual Flowchart.
- Verify that the flowchart correctly highlights completed and remaining classes in a visual format.
- Description:User can view completed and remaining classes in separate, sortable tables. Remember to go back plan schedule if you want to recheck the functionality
- Test Steps:
- On the home dashboard, navigate to Plan Schedule.
- Select classes taken
- From the Plan Schedule interface:
- Click View Completed Classes to see all classes marked as completed.
- Click Remaining Classes to view courses still required for degree completion.
- Verify
- Each table displays the correct list of classes.
- Sorting functionality works for headers (e.g., Course Name, Credit Hours).
- Classes are accurately categorized as completed or remaining.