Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/knockout/knockout
Knockout makes it easier to create rich, responsive UIs with JavaScript
https://github.com/knockout/knockout
data-binding javascript knockout mvvm
Last synced: 3 days ago
JSON representation
Knockout makes it easier to create rich, responsive UIs with JavaScript
- Host: GitHub
- URL: https://github.com/knockout/knockout
- Owner: knockout
- License: other
- Created: 2010-07-05T08:08:34.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2024-06-27T14:48:26.000Z (6 months ago)
- Last Synced: 2024-10-29T14:59:42.308Z (about 1 month ago)
- Topics: data-binding, javascript, knockout, mvvm
- Language: JavaScript
- Homepage: http://knockoutjs.com/
- Size: 7.39 MB
- Stars: 10,465
- Watchers: 524
- Forks: 1,513
- Open Issues: 372
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- my-awesome - knockout - Knockout makes it easier to create rich, responsive UIs with JavaScript (JavaScript)
- Algorithms-Cheatsheet-Resources - Knockout - A JavaScript MVVM (a modern variant of MVC) library
- jimsghstars - knockout/knockout - Knockout makes it easier to create rich, responsive UIs with JavaScript (JavaScript)
- awesome-javascript - knockout - Knockout makes it easier to create rich, responsive UIs with JavaScript - ★ 9201 (MVC Frameworks and Libraries)
- awesome-javascript - knockout - Knockout makes it easier to create rich, responsive UIs with JavaScript. (MVC Frameworks and Libraries / Runner)
- awesome-knockout - Knockout - Knockout makes it easier to create rich, responsive UIs with JavaScript (Frameworks)
README
# Knockout
**Knockout** is a JavaScript [MVVM](http://en.wikipedia.org/wiki/Model_View_ViewModel) (a modern variant of MVC) library that makes it easier to create rich, desktop-like user interfaces with JavaScript and HTML. It uses *observers* to make your UI automatically stay in sync with an underlying data model, along with a powerful and extensible set of *declarative bindings* to enable productive development.
## Getting started
[![Join the chat at https://gitter.im/knockout/knockout](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/knockout/knockout?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
**Totally new to Knockout?** The most fun place to start is the [online interactive tutorials](http://learn.knockoutjs.com/).
For more details, see
* Documentation on [the project's website](http://knockoutjs.com/documentation/introduction.html)
* Online examples at [http://knockoutjs.com/examples/](http://knockoutjs.com/examples/)## Downloading Knockout
You can [download released versions of Knockout](http://knockoutjs.com/downloads/) from the project's website.
For Node.js developers, Knockout is also available from [npm](https://npmjs.org/) - just run `npm install knockout`.
## Building Knockout from sources
If you prefer to build the library yourself:
1. **Clone the repo from GitHub**
```sh
git clone https://github.com/knockout/knockout.git
cd knockout
```2. **Acquire build dependencies.**
Make sure you have [Node.js](http://nodejs.org/) and [Java](https://www.java.com/en/) installed on your workstation. These are only needed to _build_ Knockout from sources. Knockout itself has no dependency on Node.js or Java once it is built (it works with any server technology or none). Now run:
```sh
npm install
```3. **Run the build tool**
```sh
npm run grunt
```
Now you'll find the built files in `build/output/`.To run a single task, use `--`
```sh
npm run grunt -- build:debug
```## Running the tests
If you have [phantomjs](http://phantomjs.org/download.html) installed, then the `grunt` script will automatically run the specification suite and report its results.
Or, if you want to run the specs in a browser (e.g., for debugging), simply open `spec/runner.html` in your browser.
## License
MIT license - [http://www.opensource.org/licenses/mit-license.php](http://www.opensource.org/licenses/mit-license.php)