pulsar_web 0.4.9+1
pulsar_web: ^0.4.9+1 copied to clipboard
A simple Dart web framework for building modern web applications.
Pulsar Example #
This is a minimal Pulsar Web application generated with pulsar create.
Requirements #
- Dart SDK ^3.9.0
- Pulsar CLI installed
Getting Started #
Install dependencies:
dart pub get
Run the development server:
pulsar serve
By default, the app will be available at:
http://localhost:8080
Production Build #
To generate a production build:
pulsar build
The output will be generated in the build/ directory.
Project Structure #
lib/
app.dart # Root component
web/
main.dart # Application entrypoint
index.html # HTML shell
styles.css # Global styles
How it Works #
main.dart mounts the root component into the DOM:
mountApp(App(), selector: "#app");
App extends Component and returns a PulsarNode:
class App extends Component {
@override
PulsarNode render() {
return h1(children: [text("Welcome to Pulsar!")]);
}
}
