1.1.3 • Published 2 years ago
webuify v1.1.3
About The Project
Webuify is an true fullstack library for developing web applications, like an Windows-Forms-App
Built With
Installation
Simply install via npm:
npm install webuify
Usage
Simple global counter:
const { Webuify, View, label, button, HtmlStyle, BootstrapStyle } = require("webuify");
const webuify = new Webuify({
httpPort: 8080,
style: new BootstrapStyle(),
});
const view = new View(webuify, "home", {
default: true,
title: "Homepage"
});
let counter = 0;
view.add(label(view, "Clicks: " + counter).id("counter"));
view.add(button(view, "Click me!").click((action) => {
counter++;
view.element("counter").text("Clicks: " + counter);
}));
webuify.add(view);
webuify.launch();
Contributing
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
License
Distributed under the MIT License. See LICENSE.txt
for more information.