Coder Social home page Coder Social logo

serverless-blog's Introduction

快速构建 fullstack

中文 | English

简介

fullstack 模板使用 Tencent SCF 组件及其触发器能力,方便的在腾讯云创建,配置和管理一个 fullstack 应用。

快速开始

1. 安装

# 安装 Serverless Cloud Framework
npm install -g serverless-cloud-framework

2. 创建

通过如下命令直接下载该例子:

scf init fullstack --name example
cd example

3. 部署

serverless.yml 文件所在的项目根目录,运行以下指令,将会弹出二维码,直接扫码授权进行部署:

scf deploy

说明:如果鉴权失败,请参考 权限配置 进行授权。

4. 查看状态

执行以下命令,查看您部署的项目信息:

scf info

5. 移除

可以通过以下命令移除 fullstack 应用

scf remove

账号配置(可选)

serverless 默认支持扫描二维码登录,用户扫描二维码后会自动生成一个 .env 文件并将密钥存入其中. 如您希望配置持久的环境变量/秘钥信息,也可以本地创建 .env 文件, 把从API 密钥管理中获取的 SecretIdSecretKey 填入其中.

如果没有腾讯云账号,可以在此注册新账号

# 腾讯云的配置信息
touch .env
# .env file
TENCENT_SECRET_ID=123
TENCENT_SECRET_KEY=123

serverless-blog's People

Contributors

davi-wei avatar

Watchers

 avatar

Forkers

web-logs2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.