Skip to main content

Developing with the SDK

CloudBase provides a one-stop Backend as a Service (BaaS), supporting multiple platforms such as Web, mini programs, and mobile applications, helping developers rapidly build backend services for their applications.

🌟 Advantages of SDK Development

  • 🚀 Quick Integration: Integrate cloud development services with just a few lines of code
  • 🔒 Secure and Reliable: Built-in identity authentication and data security protection
  • 📱 Cross-Platform Support: One backend service shared across multiple platforms
  • ⚡ High Performance: Globally distributed architecture with millisecond-level response
  • 💰 Cost Optimization: Pay-as-you-go pricing with no server maintenance required

🛠️ Core Features

Identity Authentication

  • Anonymous Login, Email Login, Phone Number Login
  • WeChat Login, QQ Login, and other third-party logins
  • Custom Login and User Management

Database

  • NoSQL Document Database
  • Real-time Data Synchronization
  • Complex Queries and Aggregation Operations

Cloud Storage

  • File upload, download, and deletion
  • Image Processing and CDN Acceleration
  • Secure file access control

Cloud Function

  • Server-side logic execution
  • Scheduled tasks and triggers
  • Seamless integration with other cloud services

📱 Choose Your Platform

Based on your development platform, choose the corresponding SDK Quick Start Guide:

Cloud Storage

WeChat Mini Program

The most popular Mini Program development platform, deeply integrated with the WeChat ecosystem.

Features:

  • Native Cloud Development Support
  • Rich WeChat APIs
  • Comprehensive development toolchain

Start WeChat Mini Program Development →

Web Application

Suitable for websites, H5 applications, PWAs, and other Web application development.

Features:

  • Supports all modern browsers
  • Comprehensive JavaScript SDK
  • Supports TypeScript

Start Web Development →

🚀 More Platforms

Flutter Application

Cross-platform mobile application development framework, one codebase runs on multiple platforms.

Features:

  • Supports both iOS and Android platforms
  • Native performance experience
  • Rich UI components

View Flutter Development Guide →

Unity Game

Game development engine that supports game development for multiple platforms.

Features:

  • Cross-platform game support
  • Real-time Data Synchronization
  • Game Data Analytics

View Unity Development Guide →

🎯 5-Minute Quick Experience

Want to quickly experience the capabilities of the SDK? Choose your preferred platform:

Web Quick Experience

<script src="https://static.cloudbase.net/cloudbase-js-sdk/2.0.0/cloudbase.full.js"></script>
<script>
const app = cloudbase.init({ env: 'your-env-id' });
app.auth().anonymousAuthProvider().signIn()
.then(() => console.log('Login successful!'));
</script>

Mini Program Quick Experience

// Initialize in app.js
wx.cloud.init({ env: 'your-env-id' });

// Use in the page
const db = wx.cloud.database();
db.collection('todos').get().then(res => {
console.log('Data obtained successfully', res.data);
});

📚 Learning Path

Beginner's Guide

  1. Activate Cloud Development Environment: Activate Cloud Development Environment
  2. Choose a platform to start development (link above)
  3. Learn Authentication
  4. Master Database Operations

Advanced Learning

  1. Cloud Storage File Management
  2. Cloud Function Server-side Development
  3. Real-time Database
  4. Extension Capabilities Integration

Best Practices

  1. Application Architecture Design
  2. Performance Optimization Techniques
  3. Security Best Practices
  4. Multi-environment Management

Developer Documentation

Community Support


🚀 Are you ready? Choose your development platform and start building powerful cloud-based applications!