An open API service indexing awesome lists of open source software.

https://github.com/robwalkerco/caerurfapugs

Caerurfa Pugs website with Gatsbyjs, Serverless and Surge.sh
https://github.com/robwalkerco/caerurfapugs

gatsbyjs reactjs serverless website

Last synced: 2 months ago
JSON representation

Caerurfa Pugs website with Gatsbyjs, Serverless and Surge.sh

Awesome Lists containing this project

README

          

# www.caerurfapugs.co.uk
The Caerurfa Pugs Website

Powered by [Gatsbyjs](https://www.gatsbyjs.org), [Serverless](https://serverless.com) and [Surge.sh](https://surge.sh)

## Develop
The following will run gatsbty develop.
```
npm run develop
```

## Deploy
The following will clean the public folder, build Gatsbyjs, deploy to surge.sh and deploy to the production serverless stage.
```
npm run deploy
```

## Working with Serverless
[Serverless Docs](https://serverless.com/framework/docs/providers/aws/cli-reference/)

### Deploy the project to develop
```
serverless deploy
```

### Deploy a single function to develop (faster)
```
serverless deploy function --function {function name}
```

### Testing
Functions can be best tested from the API Gateway console, to ensure the data Lambda receives is accurate.