Skip to content

joelypolly/todo-main

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

interview-todo

Assignment

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:

  1. Give a quick pass through it to make sure the current functionality is ready to ship.
  2. Add the ability to re-order items in the todo list.
  3. Add some simple search functionality, to help power users find their todos.

Dev Setup

  1. Create a python venv.
  2. Activate the venv.
  3. pip install -r requirements.txt
  4. python -m app.server

Notes

  • 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.

Found issues

  • 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-urlencoded maybe this is unexpected by the flask application
    • found the method we reading from the JSON method, replaced with form instead
  • 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors