Skip to content

yoosungung/ServerlessApplication

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

App On Aws

Serverless application on aws but not use severless framework. Instend aws cdk deploy resource that http api gateway and node lambda api, dynamodb persistent, s3 web publish client. Additinal s3 user file.

project

app-server

  1. Http Api gateway
  • /api/sign/in POST: lambda sign.js SignInHandler
  • Authorization : lamdba sign.js CheckHandler
  • /api/list/{name} GET: lambda items.js GetListHandler
  • /api/code/{name} GET: lambda items.js GetListHandler
  • /api/info/{parent} GET: lambda items.js GetListHandler
  • /api/info/{name} GET: lambda items.js AnyInfoParentIdHandler
  • /api/info/{parent}/{id} GET/POST/PUT/DELET: lambda items.js AnyInfoParentIdHandler
  1. dynamedb
  • use one table model
  • INFO_ID: hash key
    INFO_NAME: sort key
    INFO_TYPE: data type
    INFO_BY: edit user
    INFO_AT: edit date
  • master list row is INFO_ID = type name, INFO_NAME = generate random key
    child list rows is INFO_ID = parent INFO_NAME, INFO_NAME = generate random key
  1. S3 user file
  • working ...
  1. Step Function
  • planning ...

app-client

  1. single page web app
  • depend on vue framework and vuetify widget
  • use axios api client module
  • pages are Home, List, Detail and Signin
    componet is jEdit, jInfo, jSelect
  1. vue router
  • /List/{name} is read app.config.json, find {name} type define. dynamic grid header and read data from api.
  • /Detail/{name}/{id} is read app.config.json, find {name} type define and child / reference type. set dynamic detail page and read data from api.

app-configs

  1. app.config.json
    if you want new application. it's mean that write new app.config.json file.

application deploy by aws-cdk

  • npm run test perform the jest unit tests
  • cdk deploy deploy this stack to your default AWS account/region
  • cdk diff compare deployed stack with current state
  • cdk synth emits the synthesized CloudFormation template

Releases

No releases published

Packages

No packages published

Languages