Skip to content

WebUI - Workshop 2020: Frontend, Backend, Development Process

License

Notifications You must be signed in to change notification settings

martinboulais/webui-workshop

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WebUI-Workshop 2020

Overview

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.

Local Setup

NodeJS & NPM

NodeJS required version 14.
Downloading the package from nodejs website will install both NodeJS and NPM.

Check installation was successful:

  • node -v
  • npm -v

IDE

Install an editor of your choice. For this workshop, presenters will be using Visual Studio Code.

Build a project with WebUI - Framework

1. Intro

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

2. Setting up the project template locally

  1. Clone the repository via HTTPS/SSH (https://github.com/graduta/webui-workshop)
  2. Go to the directory of the project: cd webui-workshop
  3. Create your own branch: git checkout -b <your-branch-name>
  4. Install the project dependencies via: npm ci
  5. Copy the configuration file: cp config-default.js config.js
  6. Run: node index.js

Now you should have a running HTTP server hosted on localhost:8080.

References

AliceO2/WebUI-Framework

About

WebUI - Workshop 2020: Frontend, Backend, Development Process

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 66.2%
  • HTML 33.8%