⌂
›
Learn
›
Creating a New Ruflet App
Creating a New Ruflet App
Create a Ruby-first Ruflet project with:
ruflet new my_app
cd my_app
bundle install
ruflet run main.rb
ruflet create my_app is an alias for ruflet new my_app.
Generated files
my_app/
Gemfile
README.md
main.rb
ruflet.yaml
services.yaml
assets/
icon.png
splash.png
main.rbcontains the starter app and is the normal application entrypoint.Gemfilecontains the Ruby runtime dependencies.ruflet.yamlconfigures app metadata, optional client extensions, assets, and builds.services.yamldeclares protected device access such as camera or location.assets/contains the default icon and splash image.
Run targets
Mobile is the default development target:
ruflet run main.rb
Launch the managed web or desktop client with:
ruflet run main.rb --web
ruflet run main.rb --desktop
Run bundle install after creating an application, then use the ruflet command directly inside the project.
Next step
Read App Structure to understand the generated configuration, then Running a Ruflet App for the development loop.