| 1 |
# Dome Framework |
| 2 |
|
| 3 |
This project allows you to build and distribute desktop applications. |
| 4 |
The proposed framework is based on **React** [1] and **Electron** [2]. |
| 5 |
|
| 6 |
## Quick Start |
| 7 |
|
| 8 |
We strongly recommand to use **Yarn** [3] for installing the |
| 9 |
necessary **Node** packages and their dependencies. Both shall be installed |
| 10 |
with decently recent versions (`yarn -v 1.5.*` and `node -v 8.*`). |
| 11 |
|
| 12 |
Then, prepare a directory for developing your application, and download |
| 13 |
the Dome Application Framework into sub-directory `dome`. |
| 14 |
You shall setup a makefile for your application as follows: |
| 15 |
|
| 16 |
``` |
| 17 |
include dome/template/makefile |
| 18 |
all: dome-dev |
| 19 |
``` |
| 20 |
|
| 21 |
Now, simply type `make` and all the necessary packages will be automatically |
| 22 |
installed and configured. This can take a while for the very first installation. |
| 23 |
Eventually, your application shall start with a « _Hello World_ » window. Now, |
| 24 |
simply live edit the generated `src/renderer/Application.js` which is the main |
| 25 |
entry point of your application. |
| 26 |
|
| 27 |
## Advanced Usage |
| 28 |
|
| 29 |
You may install the framework in any directory, |
| 30 |
provided you set the `DOME` makefile or environment variable accordingly. |
| 31 |
By default, this variable is set to `./dome` by the template makefile. |
| 32 |
|
| 33 |
Type `make help` to see all the predefined compilation targets. |
| 34 |
In particular, `make dome-doc` will generate the Dome Documentation locally, in |
| 35 |
`$(DOME)/html/index.hml`. |
| 36 |
|
| 37 |
The `$(DOME)/template/makefile` is provided with usefull targets, but you can also |
| 38 |
use your own scripts. All generated configuration files are borrowed from |
| 39 |
resources located in the `$(DOME)/template` directory. You can extend and modify |
| 40 |
all the generated files, simply follow the comments provided. |
| 41 |
|
| 42 |
Typicall installation places for the Dome framework are: |
| 43 |
- `DOME=./dome` for usual application developpers; |
| 44 |
- `DOME=./src/dome` for application developpers that also have to hack and live-edit the Dome framework; |
| 45 |
- `DOME=.` is also possible to quick test the framework or make a demo in `src/renderer/Application.js`. |
| 46 |
|
| 47 |
The last option is not possible when installing the framework since it would conflict with your |
| 48 |
own project development. For instance, if your install Dome with `git`, you must keep the `$(DOME)/.git` |
| 49 |
distinct and ignore the entire `$(DOME)` directory in your own versionned files. |
| 50 |
|
| 51 |
## References |
| 52 |
|
| 53 |
[1] https://reactjs.org |
| 54 |
|
| 55 |
[2] https://electronjs.org |
| 56 |
|
| 57 |
[3] https://yarnpkg.com/lang/en/docs/install/ |