Build your first app
Create a Flash app, test it locally, and deploy it to production.
Initialize a project
Create boilerplate code for a new Flash project with
flash init.App development workflow
Building a Flash application follows a clear progression from initialization to production deployment:Initialize
Use This gives you a working project structure with GPU and CPU worker examples. Learn more about project initialization.
flash init to create a new project with example workers:Develop
Write your application code by defining Learn more about customizing your app.
Endpoint functions that execute on Runpod workers:Test locally
Start a local development server to test your application:Your app runs locally and updates automatically. When you call an
@Endpoint function, Flash sends the latest code to Runpod workers. Learn more about local testing.Deploy
When ready for production, deploy your application to Runpod Serverless:When you deploy an app, Runpod:
- Packages your code, dependencies, and deployment manifest into a tarball (max 500 MB).
- Uploads the tarball to Runpod.
- Provisions independent Serverless endpoints based on your endpoint configurations.
Manage
Use apps and environments to organize and manage your deployments across different stages (dev, staging, production). Learn more about apps and environments.
Apps and environments
Flash uses a two-level organizational structure: apps (project containers) and environments (deployment stages like dev, staging, production). See Apps and environments for complete details.Next steps
Build your first app
Create a Flash app, test it locally, and deploy it to production.
Initialize a project
Create boilerplate code for a new Flash project with
flash init.Test locally
Use
flash run for local development and testing.Deploy to Runpod
Deploy your application to production with
flash deploy.