This folder contains working Upsun application examples that can be used for demos without requiring external GitHub repository access.
- Type: Python Flask application
- Description: IoT monitoring and management for yachts
- Features:
- REST API endpoints
- Database integration (PostgreSQL)
- Health check endpoints
- Modern web interface
- Files:
app.py- Main Flask applicationrequirements.txt- Python dependenciestemplates/index.html- Web interface.upsun/config.yaml- Upsun configuration.environment- Environment variables
- Type: Multi-application (PHP Symfony + Node.js Next.js)
- Description: Decoupled frontend/backend architecture
- Features:
- Symfony backend API
- Next.js frontend
- Database integration
- Modern development workflow
- Files:
backend/- Symfony PHP applicationfrontend/- Next.js React application.upsun/config.yaml- Upsun configuration
- Type: PHP WordPress application
- Description: Content management system for blogs
- Features:
- WordPress CMS
- Database integration
- Content management
- Plugin support
- Files:
wordpress/- WordPress core fileswp-cli.yml- WP-CLI configuration.upsun/config.yaml- Upsun configuration.environment- Environment variables
These examples are automatically used by the demo setup script when projects are configured with "type": "local" in the demo-config.json file.
You can also use these examples for local development:
-
Flask Application:
cd examples/flask-yacht-iot pip install -r requirements.txt python app.py -
Demo Decouple Frontend:
cd examples/demo-decouple-frontend/backend composer install php bin/console server:run # In another terminal: cd examples/demo-decouple-frontend/frontend npm install npm run dev
-
WordPress Blog:
cd examples/wordpress-blog # Follow WordPress setup instructions
To add a new example:
- Create a new directory in
examples/ - Include all necessary application files
- Add a
.upsun/config.yamlconfiguration file - Add any required environment files (
.environment, etc.) - Update this README with the new example details
- Update
demo-config.jsonto reference the new example
Each example includes a properly configured .upsun/config.yaml file that defines:
- Application runtime and dependencies
- Database relationships
- Build and deployment hooks
- Web server configuration
- Environment variables
These configurations are tested and ready for deployment on Upsun.