What can you do in three minutes? A video number? Have an apple and a cup of tea and take a nap? Discovered, just 3 minutes, no matter what to do, time seems not too abundant! Now, with cloud development, you can have an app online in as little as 3 minutes! Come and come, move the small bench, let’s talk:
At present, cloud development has supported rapid deployment of multiple languages and many popular development frameworks. Just click a button to enter the cloud development console, and wait 3-5 minutes to release the application online.
For example, below is a GIF of the process for deploying the SSR framework NeXT. JS. To get a feel for it, just follow the process and you can deploy an application online!
More than just speed, using the cloud to develop and deploy applications has the following benefits:
- You don’t need to buy a server
- There is no need to configure the environment
- There is no need to configure the code repository directly
Write at the front:
How does cloud development achieve one-click deployment?
Before we teach you how to use this “dark technology”, let’s take a look at how it works.
One-click deployment is realized through cloud development. CloudBase Framework, the cloud native integrated deployment tool launched by cloud development, supports one-click deployment of front-end and back-end applications. Without changing the code, the application can be quickly and seamlessly deployed on the Serverless architecture cloud development platform (FAAS + CAAS + BAAS), enjoying the application experience of operation and maintenance free, high performance, high reliability, flexible scaling capacity.
In specific work, Cloudbase Framework will automatically pull code warehouse, detect project Framework and language, interactively confirm and save project configuration, realize the “zero configuration” one-button release of application, deploy application will automatically configure COS object storage, DNS, domain name, etc. Equipped with HTTPS security access, CDN access acceleration and other capabilities.
Getting started: Deploying the process
- Enter the cloud development site solution preferential page, select any application, and click the “One-button Deployment” button
- The page will automatically jump to the cloud development console (the first login requires authorization and access to cloud development). After waiting to create the application, click “Application Management” to enter the details page.
- Wait for about 3 minutes. When the status shows green “in progress”, the access address can be obtained:
- At this point, the cloud development has generated the default application address for you, click to preview the effect:
Congratulations, you have successfully deployed your first cloud-based Serverless application! Isn’t that easy?
Advanced: secondary development
If you need to add functionality or change a page style to your project after you deploy an app, how do you redevelop it?
Similarly, with the help of cloud development capabilities, can be very convenient and simple to achieve secondary development! Take the Next. Js application described above as an example.
1. Install Cloudbase CLI
npm install @cloudbase/cli@latest -g
Note: The installation can be checked by command line TCB-V.
2, clone code repository to local
Get the repository address on the environment details page, click to jump to GitHub and then clone or download the code locally. And locate the “next- SSR” directory.
3. Modify the project code as required
Modify the corresponding code as required. For example, you might want to change the headline of your page display to “Hello Cloudbase!” . Go to the file: pages-index.js and change the h1 structure to:
< h1 className = {styles. The title} > Hello CloudBase! </h1>
4. Modify the environment ID configuration
How do you associate a local code project with a project you just deployed to the cloud development console?
Simply modify the configuration file for the local code project: the unique identity of the environment — the environment ID.
Locate the file “cloudBaserc.json” and change the “envId” to the environment ID you just created in the console. The environment ID is available in the Console – Environment – Environment overview.
5. Execute TCB command in the project
Under the NXT – SSR project, execute the TCB command. After authorized login, the deployment will be automatically entered. After successful deployment, the access address will be generated:
At this point, you have the ability to use cloud development to complete secondary development and deploy online, and by visiting the default preview address, you can see that the changes have taken effect:
Write in the last
In addition to the popular framework provided by the official support for one-click deployment, developers’ application projects can make use of the convenient deployment of cloud development to achieve rapid development online and iterative! If you don’t believe me, they use the cloud to develop a one-click deployment app, >, >, >
After all, there is no limit to languages and frameworks. Based on Serverless mode, the work of basic setup management is left to the cloud development, and users only need to pay attention to the business logic code, which is worth a try.
Some students may ask: Is it expensive to use cloud development? Will resources be wasted?
A: Deploying your app with one click gives you access to a pay-as-you-go environment, a fully on-demand payment model, and 100% resource utilization for the user.
Finally, the Cloudbase Framework is open source! Welcome to join us and together contribute strength for the construction of open source: https://github.com/Tencent/CloudBase-Framework now, immediately deployed that belongs to you the first cloud native Serverless application!
Product introduction
Cloud development (TCB) is the cloud native integrated development environment and tool platform provided by Tencent Cloud. It provides developers with high availability, automatic elastic expansion of back-end cloud services, including computing, storage, hosting and other serverless capabilities, which can be used for integrated cloud development of a variety of end-end applications (small programs, Official account, Web application, Flutter client, etc.), which helps developers to build and manage back-end services and cloud resources in a unified way, avoiding tedious server construction, operation and maintenance in the application development process, and allowing developers to focus on the implementation of business logic with lower development threshold and higher efficiency. Open cloud development: https://console.cloud.tencent.com/tcb?tdl_anchor=techsite product documentation: https://cloud.tencent.com/product/tcb?from=12763 technical documentation: https://cloudbase.net?from=10004 technology exchange and Q group: 601134960 Latest news pay attention to WeChat public account [Tencent Yunyun Development]