The purpose of this repository is to provide training material and step by step instructions. The workshop will be split in 2 categories (Backend & Frontend) over the course of 2 days.
At the end of the workshop we would have successfully built a web project based on @aliceo2/web-ui.
NodeJS required version 14
.
Downloading the package from nodejs website will install both NodeJS and NPM.
Check installation was successful:
node -v
npm -v
Install an editor of your choice. For this workshop, presenters will be using Visual Studio Code.
The next generation of AliceO2 applications will be built as web projects based on a common UI Framework @aliceo2/web-ui
All applications are built as SPAs (Single Page Applications). A single-page application is a web application or website that interacts with the web browser by dynamically rewriting the current web page with new data from the web server.
In order to do that, it was decided to make use of Hyperscript and its capabilities of building virtual nodes. MVC
-
Examples on how to build Components.
-
Set of CSS Components built in accordance with ALICE Standards.
- Clone the repository via HTTPS/SSH (https://github.com/graduta/webui-workshop)
- Go to the directory of the project:
cd webui-workshop
- Create your own branch:
git checkout -b <your-branch-name>
- Install the project dependencies via:
npm ci
- Copy the configuration file:
cp config-default.js config.js
- Run:
node index.js
Now you should have a running HTTP server hosted on localhost:8080
.
- Solution on branch
solution/frontend-backend-development
: https://github.com/graduta/webui-workshop/tree/solution/frontend-backend-development
AliceO2/WebUI-Framework
- NPM module - @aliceo2/web-ui
- GitHub Repository - WebUI
- Documentation
- JIRA Board - OGUI