@softchef/cdk-vue3

Auto deploy website with VueJs 3 to S3 bucket and CloudFront distribution.
1,482
Install
npm install @softchef/cdk-vue3
Latest Version:2.0.53
License:Apache-2.0
Last Updated:Nov 10, 2022
Links: GitHub  ·  npm
Maintainer: softchef-iot-lab

AWS CDK with VueJs v3

npm version Release npm

AWS CDK with VueJs v3 package will auto deploy website with VueJs to S3 bucket and CloudFront distribution.

VueJs will build on local environment or docker container, it's based with Vite project. Then use S3-Deployment to upload to specify S3 bucket.

If you have many resource arguments will pass to frontend, the config property will generate config.js to specify S3 bucket. It's a VueJs extendsion and archive config in Vue.$config operation.

Architecture

Installation

  npm install @softchef/cdk-vue3
  // or
  yarn add @softchef/cdk-vue3

Example

import { VueDeployment } from '@softchef/cdk-vue3'
// In your stack
// Basic deployment
const website = new VueDeployment(this, 'WebsiteDeployment', {
  source: `${CLIENTS_PATH}`,
  clientConfig: {
    config: {
      apiId: articleApi.restApiId, // RestApi
      userPoolId: userPool.userPoolId, // UserPool
      foo: {
        bar: {
          value: 123 // Customize config
        }
      }
    }
  }
})

VueJs Example

// In public/index.html
<script type="text/javascript" src="/config.js">

// In main.js or app.js
app.use(window.VueDeploymentConfig)

// In *.vue
import { inject } from 'vue'

const $config = inject('$config')
$config.get('foo') // { bar: { value: 123 } }

Related Packages

@softchef/cdk-vue

Auto deploy website with VueJs to S3 bucket and CloudFront distribution.

9,571 7
vue-cli-plugin-s3-deploy

A vue-cli plugin for deploying your built Vue app to an S3 bucket.

84,597
aws-spa

A no-brainer script to deploy a single page app on AWS

8,157 42
form-wallet-web

form-wallet-web

1,976
web
serverless-frontend

Deploy frontend along with your Serverless application

4,495 0

Version History

Version Released License
2.0.53 Apache-2.0
2.0.52 Apache-2.0
2.0.51 Apache-2.0
2.0.50 Apache-2.0
2.0.49 Apache-2.0