Code Monkey home page Code Monkey logo

kickoff-color-picker's Introduction

Instructions

Exercise

Phase 1 -- Picker

Build a simple web based color picker. The picker should:

  1. Take input for RGB values
  2. Display the current color

Phase 2 -- Palettes

Build a form to create a palette of 5 colors.

Phase 3 -- Persistence

Persist palettes to the database.

  1. Add ability to save multiple palettes.
  2. Don't worry about palette owners. They're global.
  3. Display all the persisted palettes in the UI.
  4. Enable deleting of palettes.
  5. Enable editing of palettes.

Details

Feel free to look up syntax while working. Just don't copy any code verbatim. Come up with your own UI.

This codebase contains an Express server and a 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.

Setup

In /client, you'll find:

  • A Next.js React App
  • An example component that makes an AJAX call to the server

In /server, you'll find:

  • An Express server with a sample endpoint hit by the client
  • A Knex instance connecting to a SQLite DB

To start server

  • cd server
  • npm install
  • npm run run-migrations
  • npm run start

To add a database migration

  • npm run create-migration -- {{migration_name}}
  • npm run run-migrations
  • note: you can drop the database and start over by deleting /server/database.sqlite

To start client

kickoff-color-picker's People

Contributors

olehx avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.