Giter Club home page Giter Club logo

skeleton-scene-api's People

Contributors

mrjackdavis avatar

Watchers

 avatar  avatar

skeleton-scene-api's Issues

Show most recent toast in bread bin

Because we're using DynamoDB, it's impossible to sort toast. FUUU. So we need to peal away from DynamoDB for the storage of completed toast. I'm thinking MySQL is a solid choice, since it's got a ton of support, and we could use Amazon Aurora in the future.

Moving to MySQL will also help with #16

Generator registration

Generators should be able to register themselves with skeleton-scene.

The interaction could probably use the OAuth 2.0 Client Credentials strategy. So each generator will have it's own key and secret which can be used to authenticate each request.

Implementing OAuth 2.0 would require HTTPS though...

Version API

slap /v0-1/ or something on the front of the api url

Endpoint to pull unprocessed requests

Skeleton scene might have unexpected behaviour when there are over 100 requests. Since the fractal /scenes/ returns 100 scenes, some might be missed. Especially if more scenes are requested than can be handled.

  • /scenes/ should return the most recent 100 scenes
  • /scenesToBeProcessed/ should return least recent scene

Simplify the scene object

Having multiple processes per scene is probably too complicated. Yeah it's probably more correct, but it makes it hard to determine the status of a request. And that brings along a ton of other complexity, for example, I've noticed the generators will fail to process requests because they sometimes get stuck processing a single request.

  • Have only one status
  • Have only one result
  • Be fairly flat
    • Avoid using maps where available

Processing requests

Generators should be able to

  • Tell the API when they want to begin processing a request
    • Which will create a new processing item
  • Mark a processing item as complete or failed
    • If complete, attach the result to the item

Upload generator result to API

The API should provide a hook that allows generator result uploading, so that generators don't need to worry about storage.

Persistance

Currently, all data is held in memory on the web server.

A database needs to be implemented to persist all information.

Add support for thumbnails

Now that a bunch of scenes are all loaded and presented on the /scenes/ page of the web app, it's really slow. I'd say this is mainly due to the weight of the images.

Simple RESTful scene endpoint

RESTful endpoint for scenes

  • users should be able to create scene requests with POST
  • users and generators should be able to see scenes with GET

Upload file when creating request

Users should be able to upload files to the app and said file should be referenced in the scene request, so that generators can access the file

This is probably best done by uploading the files to S3 and then referencing that location

Dockerize app

Setup image build process so that the app can be run easily in something like elastic beanstalk =D

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.