Skip to content

OlehSych/aws-signassure

Repository files navigation

SignAssure

Technologies

Setup Workstation

Install AWS CLI

  • Windows: choco install awscli
  • MacOS: brew install awscli

Config AWS CLI

$ aws configure

AWS Access Key ID [****************TKYQ]:
AWS Secret Access Key [****************yNO2]:
Default region name [None]:
Default output format [None]:

Please enter your AWS Access Key ID and AWS Secret Access Key

Configure environment variables

# create .env file from example
  cp .env.example .env

Local Offline Development

# run dynamodb docker container
$ npm run ddb:start

# run dynamodb init tables migration
$ npm run ddb:migrate

# start nestjs
$ npm run start

After running the app, navigate to http://localhost:3000/graphql in your browser

Deployment

# deploy to AWS
$ npm run deploy

Tools

# re-generate the resources/dynamodb.yml from schemas
$ npm run genres
# re-generate the schema.gql from resolvers
$ npm run build:schema

GraphQL create resolver flow

  • add resolver to corresponding module
  • add new resolver to gqlSchemaFactory in 'src/generateSchema.ts'
  • configure serverless.yml:
    • functions
    • appSync.dataSources
    • appSync.mappingTemplates

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published