Skip to content

macitege/color-sets-api

Repository files navigation

API that is created for Color Palettes Generator website Rainbow's B.F.F.

Created by Macit Ege ERCAN

Features

  • This API provides authentication, stores users' information, and saved color palettes color code information in string format.
  • Contains 2 tables: USER and COLORS
  • The relationship between these tables is that USERS has many COLORS (one to many)
  • Any actions which change data is being authenticated and the data is owned by the user performing the change.

Technologies Used

  • Ruby on Rails and Postgresql has been used to create this website.
  • It utilizes RESTful routes for handling GET, POST, PUT/PATCH, and DELETE requests for both USERS and COLORS.

Story of Creation

For the color palette generator application, I needed an API to store users and their saved colors. I 've created this API with 2 tables, USERS and COLORS, and bound them by creating a foreign id (USER) column in COLORS table.

Unsolved but should be Solved

  • API could send parsed and immediately usable color codes on a fetch request.
  • Colors table has hsla column for colors hsla codes, however, the application is not using it actually. So, one of the next things is to create hsla codes for colors and make that column active.

Initial Project

BACK END E.R.D.:

About

API for a Random Color Palette Generator (Rainbow's B.F.F.)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published