Files
owl/README.md
T

69 lines
1.7 KiB
Markdown
Raw Normal View History

2019-03-14 12:51:19 +01:00
**Warning!**
2019-01-16 13:19:58 +01:00
2019-03-14 12:51:19 +01:00
This is currently a proof of concept, definitely not a production-ready codebase.
We hope to use it in the Odoo web client soon.
2019-01-16 13:19:58 +01:00
2019-03-14 12:51:19 +01:00
---
2019-03-14 12:51:19 +01:00
# Core Utility for Odoo Web Client
2019-01-17 18:08:39 +01:00
2019-03-14 12:51:19 +01:00
## Overview
2019-03-14 12:51:19 +01:00
This repository contains some useful building block for building web applications.
We made some efforts to make sure the code is reusable and generic. However, since this is the basis for the Odoo web client, we will not hesitate to design
the code here to better match the Odoo architecture/design principles.
2019-03-14 12:51:19 +01:00
Currently, this repository contains:
2019-03-14 12:51:19 +01:00
- some utility functions/classes
- an implementation/extension of the QWeb template engine that outputs a virtual
dom (using the snabbdom library)
- a Component class, which uses the QWeb engine as its underlying rendering
mechanism. The component class is designed to be declarative, with
asynchronous rendering.
2019-03-14 12:51:19 +01:00
In the future, this repository may includes other features. Here are some possible
ideas:
2019-03-14 12:51:19 +01:00
- a (frontend) router could be included.
- a store base class (as in the flux/redux architecture)
2019-01-28 15:51:20 +01:00
2019-03-14 12:51:19 +01:00
Note: the code is written in typescript. This does not mean that the main web
client will ever be converted to typescript (even though I would really like it).
2019-01-29 15:19:02 +01:00
2019-03-14 12:51:19 +01:00
## Main scripts
2019-03-03 11:06:50 +01:00
2019-03-14 12:51:19 +01:00
To install every dependency needed to play with this code:
2019-03-03 11:06:50 +01:00
2019-03-14 12:51:19 +01:00
```
npm install
```
2019-03-03 11:06:50 +01:00
2019-03-14 12:51:19 +01:00
To build a bundle of this as a library:
2019-03-03 11:06:50 +01:00
2019-03-14 12:51:19 +01:00
```
npm run build
```
2019-03-03 11:06:50 +01:00
2019-03-14 12:51:19 +01:00
To run tests:
2019-03-03 11:06:50 +01:00
2019-03-14 12:51:19 +01:00
```
npm run test
npm run test:watch
```
2019-03-03 11:06:50 +01:00
2019-03-17 08:57:18 +01:00
Note that the test scripts also run the example tests suites.
2019-03-03 11:06:50 +01:00
2019-03-14 12:51:19 +01:00
## Documentation
2019-03-03 11:06:50 +01:00
2019-03-14 14:12:51 +01:00
- [Quick Start](doc/quick_start.md)
- [Component](doc/component.md)
- [QWeb](doc/qweb.md)
2019-03-17 08:57:18 +01:00
2019-03-17 15:41:16 +01:00
# Examples
2019-03-17 08:57:18 +01:00
There are two examples of how to work with this web framework:
2019-03-17 15:41:16 +01:00
- [Demo Application](examples/readme.md#demo)
- [Web Client](examples/readme.md#web-client-example)