Skip to content

Spantree/Cloud-API-Demo-Web

 
 

Repository files navigation

The web interface will be available at http://localhost:8080/project (username: adminPC, password: adminPC)

Configuration

1. Register as a DJI Developer

  1. Register at DJI Developer Center
  2. Create a new application:
    • Go to Developer Center → Apps → Create App
    • Select "Cloud API" as App Type
    • Fill in the required information
    • Wait for the activation email

2. Set up Environment Variables

Create a .env.secret file in the root directory with your DJI application credentials:

VITE_APP_ID=<your_app_id>
VITE_APP_KEY=<your_app_key>
VITE_APP_LICENSE=<your_app_license>

Replace the placeholders with values from your DJI Developer account.

Services

The docker-compose setup includes:

  • Web Frontend: Vue.js application (port 8080)
  • Cloud API: Spring Boot backend (port 6789)
  • EMQX: MQTT broker (ports 1883, 8083, 8084, 8883, 18083)
  • MySQL: Database (port 3306)
  • Redis: Cache (port 6379)

Connecting DJI Pilot 2

  1. Open DJI Pilot 2
  2. Navigate to Cloud Services
  3. Click "Open Platforms" in bottom right
  4. Enter: http://<your_ip>:8080/pilot-login
  5. Click "Connect"
  6. Login with:
    • Username: pilot
    • Password: pilot123

Development Setup

If you prefer to run services locally without Docker, refer to the DJI Developer Documentation for detailed setup instructions.

Prerequisites for Local Development

  • Node.js and npm
  • Java Development Kit (JDK)
  • MySQL
  • Redis
  • EMQX

Latest Official DJI Release

The official DJI Cloud API 1.10.0 was released on 7 April 2024. For more information, please visit the Release Note.

Spantree Fork Enhancements

This fork is maintained by Spantree, LLC and includes first-class Docker support for easier deployment. Key improvements include:

  • Containerized Deployment: Complete Docker and docker-compose configuration
  • Environment Management: Improved environment variable handling with TypeScript support
  • Dependency Updates: Removed problematic mirror dependencies for better build reliability
  • Service Integration: Pre-configured supporting services (MySQL, Redis, EMQX)

Pre-built Docker containers are available on Docker Hub:

For detailed changelog information, please refer to the repository commit history.

License

This project is MIT-licensed. Please refer to the LICENSE file for more information.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Vue 58.0%
  • TypeScript 40.1%
  • SCSS 1.6%
  • Other 0.3%