logo
0
0
Login
docs: 修改文档地址

Node + Vue + COS

badge badge badge

In this example, you will use Cloud Native Build to package the "vue-cos-demo" project, build it and upload the artifacts to COS (Tencent Cloud Object Storage).

Prerequisites

  1. Use Cloud Native Build (CNB) to build your project
  2. Environment variables and their usage: Environment Variables
  3. Declarative build cache
  4. Plugins and their usage: Plugin Market
  5. Use coscli plugin: With the coscli plugin, users can perform batch operations like upload, download, and delete on objects through simple command-line instructions

Configuration Secrets

# vue_cos_secret.yml COS_SECRET_ID: xxx COS_SECRET_KEY: xxx COS_BUCKET: xxx COS_REGION: xxx

Getting Started

cnb-init-from https://cnb.cool/examples/ecosystem/vue-cos-demo.git

Quick Start

Click the Fork button in the upper right corner to fork the project to your own repository. Then click the Cloud Native Development button to start remote development.

  1. Install dependencies
npm install
  1. Run the project in debug mode
npm run dev
  1. Access the API (debug mode also available)
curl http://localhost:8000