Giter Club home page Giter Club logo

tsy-tencentcloud's Introduction

React 自定义应用示例

这个目录是基于云开发的一个 React 应用示例,包含 React + 云函数 + 静态网站部署,可以基于 CloudBase Framework 框架将项目一键部署到云开发环境

此项目基于 React + TypeScript 开发,并采用了 react-app-rewired 修改 CRA(create-react-app) 配置,提供了修改 CRA(create-react-app)构建配置的能力。

线上演示地址

https://framework-1258016615.tcloudbaseapp.com/react-custom/

点击下方按钮使用 CloudBase Framework 可以在云端一键部署本项目到自己的云开发账号上。

部署一个 React 应用

步骤一. 准备工作

具体步骤请参照 准备云开发环境和 CloudBase CLI 命令工具

步骤二. 初始化应用示例

在命令行执行

cloudbase init --template react-starter

步骤三. 修改配置

将您的环境 ID 填写到 src/tcb.ts 文件的中

步骤四. 一键部署

进入到项目目录,在命令行执行

cloudbase framework deploy

开发命令及配置

本地开发

npm run start

上线部署

npm run deploy

CloudBase Framework 相关开发配置

查看 CloudBase Framework 配置.

React 开发文档

查看 开发者文档.

tsy-tencentcloud's People

Contributors

saltflow avatar woods-zxh avatar zhang-jk avatar zicenpan avatar

Watchers

 avatar

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.