GithubHelp home page GithubHelp logo

color-palette-generator's Introduction

Thread Color Palette Generator API

About

This thread color palette generator api allows users to create an account, generate color palettes based on DMC color codes, as well as save and delete color palettes to their account.

Live Link

https://color-palette-tau.vercel.app/

Technologies Used

  • Javascript
  • Node.js
  • Express
  • PostgreSQL
  • RESTful API

Screenshots

 home screen

 palette results screen

 saved palettes screen

Base URL

https://color-generator-tool.onrender.com/

Response

  • JSON

Authentication

  • Requires JWT token

Each request must include content-type: application/json and Authorization: Bearer [token]

Create New User

  • POST /api/users
  • Request Body must include: username, first_name, user_password

Log In

  • POST /api/auth/login
  • Request Body must include username, user_password

Palettes

GET generate color palettes

  • /color-palette to request a color palette
  • required color scheme query: mode=[triad, quad, monochrome, complement]
  • required count query: count=[number]
  • required colorCode query: colorCode=[DMC color code]

Thread Colors

GET all DMC thread colors

  • /thread-colors to request an array of all DMC colors
  • /thread-colors/:id to get a specific color by DMC color code

User's Saved Palettes

GET saved palettes

  • /saved-palettes to get all saved palettes
  • /api/projects/:id to get a palette by id

DELETE user's saved palette

  • /saved_palettes/:id

POST save a palette to user

  • /api/saved_stitches/
  • Request Body must include palette_name, colors (array of color ids)
  • { palette name:'blue palette', colors: [] }

color-palette-generator's People

Contributors

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