This sample shows how to get a minimal Vue.js app up and running with Defang.
- Download Defang CLI
- (Optional) If you are using Defang BYOC authenticated with your AWS account
- (Optional for local development) Docker CLI
To run the application locally, you can use the following command (make sure you've got npm and Node.js installed):
npm run devTo run it using a Docker container, you can use the following command:
docker compose up --buildNote
Download Defang CLI
Deploy your application to the Defang Playground by opening up your terminal and typing:
defang compose upIf you want to deploy to your own cloud account, you can use Defang BYOC:
- Authenticate your AWS account, and check that you have properly set your environment variables like
AWS_PROFILE,AWS_REGION,AWS_ACCESS_KEY_ID, andAWS_SECRET_ACCESS_KEY. - Run in a terminal that has access to your AWS environment variables:
defang --provider=aws compose up
Title: Vue.js
Short Description: A minimal Vue.js app running on Defang.
Tags: Vue.js, Vite, Node.js, Frontend, JavaScript
Languages: nodejs