- Add proper error handling on both the front and back-end.
- Write an automated test for this
- Handle an invalid payload where the
title,author, and/orreadis missing - Think of any potential errors on the client or server
- Think about where
showMessageshould be set tofalse. - Try using the Alert component to display errors.
- Refactor the alert to be dismissible.
- Handle the case of an
idnot existing. - Refactor the for loop in the remove_book so that it's more Pythonic.
- Clean the component up by moving the methods that make HTTP calls to a untils or services file.
- Try to combine some of the methods that contain similar logic, like
handleAddSumitandhandleEditSubmit. - Instead of deleting on the button click, add a confimation alert.
- Display a "No books! Please add one." message when no books are present in the table.
Check out the tutorial.
-
Fork/Clone
-
Run the server-side Flask app in one terminal window:
$ cd server $ python3 -m venv env $ source env/bin/activate (env)$ pip install -r requirements.txt (env)$ flask run --port=5001 --debug
Navigate to http://localhost:5001
-
Run the client-side Vue app in a different terminal window:
$ cd client $ npm install $ npm run devNavigate to http://localhost:5173