Giter Site home page Giter Site logo

sueop's Introduction

Sueop

Sueop is a PWA demo using Polymer 1.X and Serverless 1.0. Read more here.

Stack

Polymer

# install polymer-cli
npm install -g bower
npm install -g polymer-cli

# start Polymer server
polymer serve --open

# build folders for production
polymer build

# clean assets for production
gulp vulcanize

Serverless

# download required packages
cd serverless
npm install

# deploy the service
serverless deploy -v

# check CORS
curl -H 'Origin:https://origin.com' --verbose https://endpoint.com/stage/function

AWS cli

# setup the cli
aws configure

# delete a bucket
aws s3 rm s3://my.bucket.com/ --recursive

# upload files into a bucket
aws s3 cp /tmp/foo/ s3://my.bucket.com/ --recursive

# upload a json to a dynamo table (max 25 items)
aws dynamodb batch-write-item --request-items file:///home/user/data.json

Data structure (JSON)

Vocabulary table

{ "Vocabulary": [
  {"PutRequest": {
    "Item": {
      "VocabularyKr": {"S": "낮잠 자다"},
      "VocabularyEn": {"S": "take a nap"},
      "ExampleKR": {"S": "잠시 낮잠 취한다"},
      "ExampleEn": {"S": "Take a little nap"},
      "Tags": {"SS": ["activity"]},
      "Type": {"S": "verb"}
    }
  }},

Grammar table

{ "Grammar": [
  {"PutRequest": {
    "Item": {
      "GrammarKr": {"S": "~ㄹ/을 테니까"},
      "GrammarEn": {"S": "my own duty"}
    }
  }},

History table

{ "History": [
  {"PutRequest": {
    "Item": {
      "EraName": {
        "S": "고조선 시대"
      },
      "SubEras": {
        "L": [
          {
            "M": {
              "SubEraName": {
                "S": "단군조선"
              },
              "SubEraStartDate": {
                "S": "기원전 2333년"
              },
              "SubEraEndDate": {
                "S": "기원 전 194년"
              }
            }
          },
          {
            "M": {
              "SubEraName": {
                "S": "위만조선"
              },
              "SubEraStartDate": {
                "S": "기원전 194년"
              },
              "SubEraEndDate": {
                "S": "기원전 108년"
              }
            }
          },
          {
            "M": {
              "SubEraName": {
                "S": "진국"
              },
              "SubEraStartDate": {
                "S": "기원4세기"
              },
              "SubEraEndDate": {
                "S": "기원전 2세기"
              }
            }
          }
        ]
      }
    }
  }},

Resources

sueop's People

Contributors

jtrollia avatar

Watchers

James Cloos avatar

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.