Our new TODO tracker app is launching tomorrow, and we're finally going to be rich! We do still have a few minor things we need to address though before launch. Could you please:
- Give a quick pass through it to make sure the current functionality is ready to ship.
- Add the ability to re-order items in the todo list.
- Add some simple search functionality, to help power users find their todos.
- Create a python venv.
- Activate the venv.
pip install -r requirements.txtpython -m app.server
- Treat the code you write, within reason, as though it was production code that you were going to be responsible for in the future.
- This app is powered by SQLite. This obviously wouldn't cut it for a real app, but for the purposes of this assignment we don't expect you to use anything else.
- Please feel free to ask questions if any of the requirements are vague.
-
Frontend return 404 on styles.css => Fix added static/css/styles.css
-
Unsupported Media Type => likely issues with header
- found that POST is sending
Content-Type: application/x-www-form-urlencodedmaybe this is unexpected by the flask application - found the method we reading from the JSON method, replaced with form instead
- found that POST is sending
-
Achieved the reordering (time spent 1 hour)
- There is a transaction so updates are atomic
- Issues
- Not really any use if this app is multi user as the frontend won't be accurate to the actual ordering in the DB
- Could add frontend reordering and a save button that would then reflect actual user
- UI still looks pretty janky
-
[] Adding full text search (time spend 10 min)
- Going to just do frontend search for now
- Could also use full text search on the database side