Challenge - Student Registration System
You built the personal website with guidance. Now build something on your own.
What to build
A student registration system. A visitor comes to the page, fills in their details, and clicks Register. Their details are saved to a database and appear in a table on the same page - without the page reloading.
What to capture
Each student record must have:
- Name
- Phone number
- Course they want to do
What the app must do
- Save each registration to PookieDB
- Show all registrations in a table that loads automatically when the page opens
- Allow deleting a registration from the table
What you already know
You have everything you need. You built exactly this kind of app in the CRUD group - a form that sends data with fetch, a Flask backend that saves it to PookieDB, and a table that loads on page open. The only difference here is the fields.
Stretch goal
Add an edit flow. When a student clicks Edit on their row, their details fill back into the form. They change what they want and click Save. The record updates in the database and the table refreshes.
Where to start
Start with database.py. Define your Student model with the three fields. Then build app.py with the routes. Then build the template. One piece at a time.
← Personal Website - Contact Next: What is Authentication? →