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 the 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.
This is designed to take between 2-4 hours.
There's a lot to do. Don't sweat the details. 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