Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stradivario/gapi-starter-simple-serverless
https://github.com/stradivario/gapi-starter-simple-serverless
Last synced: 16 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/stradivario/gapi-starter-simple-serverless
- Owner: Stradivario
- Created: 2019-02-17T10:24:02.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-01-31T18:35:02.000Z (almost 5 years ago)
- Last Synced: 2024-10-18T18:21:47.772Z (2 months ago)
- Language: TypeScript
- Size: 214 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# @Gapi Starter Serverless simple
##### @GraphqlThis is basic example serverless project related with [GAPI](https://github.com/Stradivario/gapi)
to check advanced example project go to [advanced-example](https://github.com/Stradivario/gapi-starter-serverless-sequelize)#### To start developing clone repository
```bash
git clone https://github.com/Stradivario/gapi-starter-serverless
```#### Install @gapi/cli utility and serverless globally
```bash
npm i -g @gapi/cli serverless
```#### Set AWS key and secret
```bash
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
```bash
gapi start
```#### Build application
```bash
gapi build
```Application will be builded inside `dist` folder
#### Build and Deploy to AWS Serverless
Staging
```bash
gapi build && serverless deploy
```Production
```bash
gapi build && serverless deploy --stage prod
```To check current application inside of working lambda
#### Staging [Click here](https://cbjrjdznf2.execute-api.us-east-2.amazonaws.com/staging/graphql?query=query%20%7B%0A%20%20findApp(id%3A%201)%20%7B%0A%20%20%20%20id%0A%20%20%7D%0A%7D&fbclid=IwAR2I6VDE2xqoe-AfonW55UbfpW19XCwVTWjsdYcCVXogXfzN94W4LfSNB6g)
#### Prod [Click here](https://luhf6hv7og.execute-api.us-east-2.amazonaws.com/prod/graphql?query=query%20%7B%0A%20%20findApp(id%3A%201)%20%7B%0A%20%20%20%20id%0A%20%20%7D%0A%7D&fbclid=IwAR2I6VDE2xqoe-AfonW55UbfpW19XCwVTWjsdYcCVXogXfzN94W4LfSNB6g)