/Nuxt-Vue-Express-AWS-template

A template to create a Vuetify site, run on Nuxt and Express, hosted on AWS-Lambda, using serverless to handle transfer

Primary LanguageVueMIT LicenseMIT

Nuxt-Vue-Express on AWS-Lambda

SSR Frontend on Serverless Sample: https://aws.folkmann.it/

Setup AWS and serverless

  1. Head to the AWS Certificate Manager, and create and verify the domain
  2. Go to "API Gateway/Custom Domain Names", and add the domainname you just created a certificate for
  3. Go to your DNS-registra and create a CNAME that points to the XXXXXXXXXXXX.execute-api.[region].amazonaws.com domain you were given in 2.
  4. Update the secrets.json
  5. Wait 40 minutes
  6. Deploy

Build and Deploy Setup

# install dependencies
$ npm install

# serve with hot reload at localhost:3000
$ npm run dev

# build for production and upload to AWS-Lambda (update config in serverless.yml first!)
$ npm run deploy

For detailed explanation on how things work, checkout Nuxt.js docs.