1.8.23 • Published 6 years ago
@gapi/starter-simple-serverless
Licence
MIT
Version
1.8.23
Deps
2
Size
42 kB
Vulns
0
Weekly
0
@Gapi Starter Serverless simple
@Graphql
This is basic example serverless project related with GAPI to check advanced example project go to advanced-example
To start developing clone repository
git clone https://github.com/Stradivario/gapi-starter-serverless
Install @gapi/cli utility and serverless globally
npm i -g @gapi/cli serverless
Set AWS key and secret
serverless config credentials --provider aws --key AKIAIK7OLXM4EHJSSXCA --secret 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
To obtain key and secret https://console.aws.amazon.com/iam/home?#/security_credentials
Start the application
gapi start
Build application
gapi build
Application will be builded inside dist folder
Build and Deploy to AWS Serverless
Staging
gapi build && serverless deploy
Production
gapi build && serverless deploy --stage prod
To check current application inside of working lambda