Giter Site home page Giter Site logo

settle-in-ui's Introduction

Settle In UI

Description

A frontend data collector written in JQuery for settlement data collection.

Currently deployed to https://lsc.data.settletech.com.au

The url for generating and saving new scenarios: https://lsc.data.settletech.com.au/generate.html

Uses Settle-In for the back-end.

Deployment

To sync the file to the s3 for serving

aws --profile ruoyi s3 sync --acl public-read --delete . s3://settle-in-dev-new/ && aws cloudfront create-invalidation --distribution-id EAJDL6BYQFH5H --profile ruoyi --paths /index.html /about.html /start.html /generate.html /js/main.js /js/about.js /css/main.css /css/about.css /robots.txt /README.md /

Webpage URL http://settle-in-dev-new.s3-website-ap-southeast-2.amazonaws.com

Endpoints

Base URL https://ho1k9awhxg.execute-api.us-east-1.amazonaws.com/dev

GET

  • To list all scenarios that name hasn't settled - /scenario/list/not/{name}

POST

  • Save the new scenario with its settlement - /create
{ 
    type: <type of scenario. eg "random" - optional>
    values: {
        key: value,
        key2: value2
    },
    parentId: <id of the scenario this new scenario is derived from - optional>
    settlements: { // OPTIONAL. Allows adding settlements on creation
        name: value
    }
}

returns {id: <newly created id>}

  • Save the settlement for an existed scenario - /settle
{ 
    id: <scenario id>
    name: <userId (email) of person creating this settlement>
    value: <0-100 value of the settlement>
}
  • user/create
{ 
    email: <email address>
    val1: <some value>
    ...
    valN: <another value>
}

returns the same data back to you on success

settle-in-ui's People

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.