Skip to content

kyeenno/kaggle-colors-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Welcome to My Fully Managed Api


Task

Build a simple REST API for a color dataset with authentication & Redis sessions. Provide CRUD endpoints backed by a local JSON data file. Secure write operations with user login and server-side Redis sessions.

Description

  • Server: Node.js + Express (ES modules)
  • Cloud hosting & Redis database: Railway
  • Data: persisted to project/data.json
  • Auth: Auth0 via Passport; sessions via express-session with Redis (falls back to in-memory if no REDIS_URL)
  • Base route / returns a text list of available endpoints

Usage

  1. Navigate to https://kaggle-colors-api-production.up.railway.app/.
  2. That's it! Now you can test the app by navigating to available endpoints listed below.

Auth

  • GET /auth/auth0 – start login
  • GET /auth/auth0/callback – login callback
  • GET /auth/logout – Auth0 logout + redirect
  • GET /auth/success – indicates successfull login & logged-in user info
  • GET /auth/failure – indicates login failure
  • GET /me – current user (session)
  • POST /logout – clear local Redis session

Colors API

  • GET /colors – list colors
  • GET /colors/:name – get color by name
  • POST /colors – add color (auth)
  • PUT /colors/:name – update color (auth)
  • DELETE /colors/:name – delete color (auth)

The Core Team

Made at Qwasar SV -- Software Engineering School Qwasar SV -- Software Engineering School's Logo

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published