https://github.com/olegkorol/serverless-nuxt-lambda
Example of a serverless, SSR application
https://github.com/olegkorol/serverless-nuxt-lambda
aws javascript nuxt serverless-framework vue
Last synced: about 2 months ago
JSON representation
Example of a serverless, SSR application
- Host: GitHub
- URL: https://github.com/olegkorol/serverless-nuxt-lambda
- Owner: olegkorol
- Created: 2018-10-28T19:06:38.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-10-29T09:47:19.000Z (over 6 years ago)
- Last Synced: 2025-01-13T07:40:24.053Z (4 months ago)
- Topics: aws, javascript, nuxt, serverless-framework, vue
- Language: JavaScript
- Homepage: https://serverless-nuxt-lambda.olegkorol.net/
- Size: 79.1 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# serverless-nuxt-lambda
## Description
This repository demonstrates a sample application using:
* Nuxt.js
* Serverless Framework
* AWS Lambda
* AWS API Gateway## Quick start
To run the application locally, run:
`$ npm run start:dev`
## Deploy to AWS
Follow these steps:
1) If you want to change the service name, check the `serverless.yml` file.
Change this line: "`service: serverless-nuxt-lambda`"2) You will have to add your own domain to the `secrects.json` file.
>NOTE: Make sure that you have a SSL certificate for the (sub)domain on AWS before getting to the next step.
3) To register the new (sub)domain on AWS, run:
`$ sls create_domain`
And then wait for about 30 min for AWS to set things up.4) After that run `$ npm run deploy` and you are all set.
The Serverless Framework will create a CloudFormation file for you and create an API Gateway and Lambda.
>I got this idea from a blog post by [@adnanrahic](https://github.com/adnanrahic)