Build a simple web based color picker. The picker should:
- Take input for RGB values
- Display the current color
Build a form to create a palette of 5 colors.
Persist palettes to the database.
- Add ability to save multiple palettes.
- Don't worry about palette owners. They're global.
- Display all the persisted palettes in the UI.
- Enable deleting of palettes.
- Enable editing of palettes.
Feel free to look up syntax while working. Just don't copy any code verbatim. Come up with your own UI.
This codebase contains a Next.js React app. The scaffold is in place to allow you to focus on the exercise instead of the setup. However, if you're more comfortable with your own tools, feel free to replace any or all of it.
Please take 2 hours to complete the exercise. If you choose to setup the app yourself instead of using the scaffold, take an extra 30min to get everything in place.
There's a lot to do. Don't sweat the details. Just focus on getting through as much as you can. Finishing everything isn't a requirement for success in the exercise. If you do finish early, take your pick of refactoring, styling, or adding features.
- An example component that makes API calls (/components/welcome)
- API endpoints connecting to a SQLite DB with Knex (/pages/api/greeting)
- yarn install
- yarn run-migrations
- yarn dev
- open http://localhost:3000
- yarn create-migration -- {{migration_name}}
- yarn run-migrations
- note: you can drop the database and start over by deleting database.sqlite