From 9e608dae49ab010834145452011c93f946fd258e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9ry=20Debongnie?= Date: Sun, 17 Mar 2019 08:57:18 +0100 Subject: [PATCH] update documentation --- README.md | 35 ++++++++++++++++++----------------- examples/demo/readme.md | 4 ++++ examples/web/readme.md | 7 +++++++ 3 files changed, 29 insertions(+), 17 deletions(-) create mode 100644 examples/demo/readme.md create mode 100644 examples/web/readme.md diff --git a/README.md b/README.md index d2397b6c..5729e2f5 100644 --- a/README.md +++ b/README.md @@ -31,14 +31,6 @@ ideas: 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). -## Web client demo - -To test and play with the component class, there is a demo application located -in the _demo/_ folder. It is a rethink of what the web client could look like -if it is ever rebuilt from scratch. It is currently an experiment. But -obviously, we hope someday to be able to use this work and actually rewrite -completely the odoo web client. - ## Main scripts To install every dependency needed to play with this code: @@ -60,18 +52,27 @@ npm run test npm run test:watch ``` -To play with the demo application: - -``` -npm run demo:build # make a build in dist/app/ -npm run demo:dev # make a build in dist/app/, and make a live server to access it -``` - -The _demo:dev_ task will build the app (without minification), then start a live-server with hot-reloading, and watch the file system to make sure -that assets are properly rebuilt if necessary, and then reloaded. +Note that the test scripts also run the example tests suites. ## Documentation - [Quick Start](doc/quick_start.md) - [Component](doc/component.md) - [QWeb](doc/qweb.md) + +## Examples + +There are two examples of how to work with this web framework: + +- [Demo Application](examples/demo/readme.md) +- [Web Client](examples/web/readme.md) + +To play with the examples: + +``` +npm run example:build # make a build in dist/app/ +npm run example:dev # make a build in dist/app/, and make a live server to access it +``` + +The _example_:dev\_ task will build the app (without minification), then start a live-server with hot-reloading, and watch the file system to make sure +that assets are properly rebuilt if necessary, and then reloaded. diff --git a/examples/demo/readme.md b/examples/demo/readme.md new file mode 100644 index 00000000..7442b698 --- /dev/null +++ b/examples/demo/readme.md @@ -0,0 +1,4 @@ +# Demo + +This example is just a playground to experiment/showcase some features of +the framework. diff --git a/examples/web/readme.md b/examples/web/readme.md new file mode 100644 index 00000000..1bd2f958 --- /dev/null +++ b/examples/web/readme.md @@ -0,0 +1,7 @@ +# Web Client Example + +To test and play with the component class, there is a demo application located +in the _examples/web/_ folder. It is a rethink of what the web client could look like +if it is ever rebuilt from scratch. It is currently an experiment. But +obviously, we hope someday to be able to use this work and actually rewrite +completely the odoo web client.