๐ Building Web Apps - Create Your Own Platform Experience!
Welcome to the world of web applications in Dataloop! Here's where you'll learn to create beautiful, interactive web experiences that seamlessly integrate with our platform. Let's build something amazing! โจ
โก Quick Start Guide
- ๐จ Create a client-side app using your favorite framework (we โค๏ธ Vue.js!)
- ๐ Serve your magical
dataloop.json
manifest at your app's root - ๐ Host your app locally on
local.dataloop.ai
with HTTPS - ๐ฏ Add your app as a debug app in the Application Hub
- ๐งช Test your creation in its intended panel type
- ๐ Debug using browser dev tools
๐๏ธ Building Your Web Application
๐จ Choosing Your Framework
While you can use any modern framework (React, Angular, etc.), we especially love Vue.js because:
- ๐ฏ We provide a Vue-based design system matching our platform theme
- ๐จ We offer ready-to-use UI components
- ๐ง We maintain open-source Vue.js libraries and icons
๐ Quick Start Template
Want to jumpstart your development? Check out our example application!
๐ ๏ธ Local Development Setup
๐ง Essential Configurations
Configure Local Domain
# Add to your hosts file (/etc/hosts or C:\Windows\System32\drivers\etc\hosts) 127.0.0.1 local.dataloop.ai
Development Requirements
- ๐ HTTPS enabled
- ๐ CORS configured
- ๐ฏ Windows: Serve on "0.0.0.0"
- ๐ Public
dataloop.json
at app root - ๐ค Developer role access
- ๐ Familiarity with our JS SDK
๐ฎ Creating Your First App
Project Setup
# Install dependencies npm i # Start development server npm run serve
Access Your App
- Open https://local.dataloop.ai:8080
- If you see "Not Private" warning:
- Click "Proceed to local.dataloop.ai" or
- Type "thisisunsafe"
๐ป Building an Item Viewer
Let's create a magical item viewer using our JS SDK! Here's how to bring your items to life:
๐ฎ Initialize SDK & Load Item
// App.vue
export default {
methods: {
async getItemDetails() {
// Get the current item
this.item = await this.dl.items.get()
// Get item stream for display
this.stream = await this.dl.items.stream(this.item?.stream)
}
}
}
๐จ Display Your Item
<!-- Show the item with style -->
<img
v-if="item && stream"
:src="stream"
:width="itemWidth"
:height="itemHeight"
/>
๐ Debug Mode in Platform
๐ฏ Adding Your Debug App
Navigate to Application Hub > Developer tab
Click Add Function
Configure Your App:
- Name your creation
- Choose main slot (e.g., Item Viewer)
- Enter your local URL
Test Your App:
- Go to dataset browser
- Right-click an item
- Choose "Open With..." > Your App
๐งช Testing Your Creation
๐ Local Testing Setup
We provide powerful tools for testing your app locally:
DlMockDriver
import { DlMockDriver } from '@dataloop/jssdk' const data = require('./snapshot.json') global.window.dl = new DlMockDriver(data)
Debug Snapshot Feature
- Add your debug app to platform
- Click Debug Snapshot icon (or Alt+Shift+S)
- Save snapshot to tests directory
- Use in your test setup
๐จ Complete Item Viewer Example
Want to see a production-ready example? Check out our item-viewer repository!
๐ก Pro Tips
- ๐ Use browser dev tools for debugging
- ๐ Keep your manifest up to date
- ๐งช Test across different browsers
- ๐ Follow security best practices
- ๐ Document your configuration
๐ Next Steps
Ready to create your own web application? Here's your checklist:
- ๐ Choose your framework
- ๐ ๏ธ Set up local development
- ๐ง Configure your manifest
- ๐จ Build your interface
- ๐งช Test thoroughly
- ๐ Deploy and share!
Need inspiration? Visit our example apps or join our developer community! โจ