Skip to content

CodeChica/SparkleHub-lite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sparkles

This is a web application that allows you to say nice things about other people called "Sparkles".

A single HTML file can be found in ./public/index.html that is the home page for the web application. A live version of this application can be found here.

Getting Started

Watch this.

HTTP API

POST /sparkles.json

Use this endpoint to create a new sparkle.

$ ./script/sparkle @monalisa for helping me with my project!
HTTP/1.1 201 Created
Access-Control-Allow-Origin: *
Content-Type: application/json
Date: Wed, 13 Oct 2021 15:52:49 GMT
Content-Length: 68

{"sparklee":"@monalisa","reason":"for helping me with my project!"}

GET /sparkles.json

Use this endpoint to get a list of all the sparkles.

$ ./script/sparkles | jq '.'
[
  {
    "sparklee": "@monalisa",
    "reason": "for helping me with my project!"
  }
]