How to start with Optimus
This guide gives you step-by-step instructions on how to create a simple application with lightweight JavaScript UI Framework.
The guide will teach you how to create your own views on the base of DHTMLX Optimus using DHTMLX Suite. You will also learn how to implement exchange of data between the views and components from any point of the application.
The complete source code is available on GitHub. You can check the step-by-step changes by switching between the branches with the related names.
For more information about working with the components of DHTMLX Suite, see DHTMLX documentation. The detailed information on DHTMLX Optimus is presented here.
So, let's get started!
Configure the environment
Preparing the environment
In this tutorial we'll work with the environment that we've already configured using webpack.
The whole project structure will be as follows:
optimus_demo_guide
|── build/
└── src/
|── assets/
|── static/
|── views/
|── index.html
└── index.js
- root directory - contains files with configurations of the project and environment
- build/ folder - contains scripts for running webpack
- src/ folder - includes sources for the application's functioning
- src/index.js - the entry point of the application
- views/ folder - stores files with views. We recommend to have a single view per file.