- Clone this repository
- Run
npm install
- Make sure Docker is running
- In one terminal window run
npm run up
to start the postgres server - In another terminal window run
npm run setup
to create and seed the database - Now you can run
npm run dev
to start working on the app
- Fix all console errors in the browser
- Fix item saving
- Change the header on the page so it makes sense
- Move initial request to the client using
react-query
, use chakra skeleton or spinner while it loads - Make text in the TODO item required, should throw an error on the server if empty
- Make whole item clickable to toggle a checkbox
- Update
/api/stats
so it returns real data from the database instead of hardcoded, do all aggregations in db using raw SQL - Feel free to fix/update anything else you see fit
- how would you propose to update/change API structure/handler?
- what would you add/change on the frontend?