pulsar_web 0.4.9 copy "pulsar_web: ^0.4.9" to clipboard
pulsar_web: ^0.4.9 copied to clipboard

A simple Dart web framework for building modern web applications.

example/README.md

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!")]);
  }
}
2
likes
160
points
733
downloads
screenshot

Publisher

unverified uploader

Weekly Downloads

A simple Dart web framework for building modern web applications.

Homepage
Repository (GitHub)
View/report issues

Topics

#web #frontend #css

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

universal_web

More

Packages that depend on pulsar_web