HULKs / moments

0 stars 0 forks source link

Planning #1

Open schmidma opened 11 months ago

schmidma commented 11 months ago

Moments OpenWall 2 (aka WallING, WallE) Pictu-rs

Stakeholder

Kiosk

Uploader on mobile, desktop

On-site setup

Deployment

Future updater

Malicious/external user

Viewer mobile, desktop (low priority)

PhotovoltMaik

Responsibilities

Server

Client

Technology

Server

Client

UI

Authorization

Milestones

PasGl commented 11 months ago

For inspiration (test for free) or as commercial alternative (39$ one-time-fee) https://www.kululu.me/

h3ndrk commented 11 months ago

For the frontend, it would be helpful to get some kind of index with the following information:

This index should be accessible under a well-known endpoint s.t. the JavaScript can retrieve it.

Proposal:

GET /images/index.json should yield the following JSON:

{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "array",
  "comment": "all available images",
  "items": [
    {
      "type": "object",
      "comment": "one available image",
      "properties": {
        "filename": {
          "type": "string",
          "comment": "relative to `/images/`, e.g. `foo.jpg` refers to `/images/foo.jpg`"
        },
        "resolution": {
          "type": "object",
          "properties": {
            "width": {
              "type": "integer",
              "comment": "pixels"
            },
            "height": {
              "type": "integer",
              "comment": "pixels"
            }
          },
          "required": [
            "width",
            "height"
          ]
        },
        "timestamp": {
          "type": "number",
          "description": "fractional UTC seconds since 1970"
        }
      },
      "required": [
        "filename",
        "resolution",
        "timestamp"
      ]
    }
  ]
}