Showcasing my growth from the first capstone and everything I have learned at DevMountain. Built in Python (Flask web framework) Database: sqlite
Primary goal is to have a system students can clock in and clock out with to track their times (for CTE programs)
- Start Database
- In terminal:
Python3 -i model.py
>>> db.create_all()
3. To create a student user:
>>> new_student = Student(student_id='', first_name='', last_name='')
>>> db.session.add(new_student)
>>> db.session.commit()
4. To create an admin user:
>>> new_admin = Admin(login='', password='')
>>> db.session.add(new_admin)
>>> db.session.commit()
- On the homepage, enter your student ID.
- If the student ID is valid, it will take you to the clock in/clock out page.
- You can either clock in if your clock status is false or clock out if your clock status is true.
- All clock events will be logged in a Clocks class that the student can view by hitting the "view all clocks" button.
- on the homepage, type "admin" into the field to access the admin login screen.
- On the admin login screen, enter your admin login and password.
- You will see a list of all the students with a details button for each list item.
- Click the details button to access a page that shows all the student clock data and allows you to delete clock data.
- Back buttons need to be added to most pages.
- If you delete a if a student is clocked in and you delete their clock entry before they clockout it will break their account.