Database Systems Pre-Lab 2
RelaX - relational algebra calculator
The Islamic University of Gaza
Engineering Faculty
Department of Computer Engineering
Authors: Usama R. Al Zayan & Rasha E. Kahil2023/02/06
Expecteed outcomes
- Review The Relational Algebra Operations.
- Install lab’s tool on student’s device locally.
Lab 2: Time and Plan
Tasks |
Timing |
Quiz 1 |
10 min |
Task 1 |
35 min |
Task 2 |
15 min |
Task 3 |
15 min |
Task 4 |
20 min |
Introduction
In this Pre-lab, we are going to talk about how to run RelaX (relational algebra calculator) locally in your device. You can run online
RelaX - relational algebra calculator But We are not sure if there is internet in the lab room, so please make sure the site is running locally before attending the lab.
Student’s To Do list:
- Read Section 2.6 (The Relational Algebra) in the Textbook.
- Install node.js (v12.16.0).
- Install Yarn.
- Install Git.
- Run RelaX - relational algebra calculator.
Quiz in Lab 02
A quiz will be given at the beginning of lab 02 in Section 2.6 (The Relational Algebra).
Install node.js (v12.16.0)
- Download this installation file node-v12.16.0-x64.
- Open the downloaded setup file, don’t think, and keep progressing with
Next
.
Install Yarn
- Open cmd as Administrator.

- Run this command
npm i yarn
.

Install Git


How to Run RelaX - relational algebra calculator
- Create new folder, name it
Lab2
, and open it.
- Click right on any place inside
Lab2
folder, and click Git Bash Here
.

- Clone relax repository as follows:
git clone https://github.com/dbis-uibk/relax.git
.

- Download this file uibk.txt.
- Replace
relax\src\calc2\data\uibk.txt
file with the downloaded uibk.txt
file.
- Try to run this command
yarn --version
if yarn command not found, run npm install --global yarn
and try again.

- Change directory to the new inner relax folder (
cd relax
).
- Run this command
yarn install
.

- Run this command
yarn serve
.

- Now, go to your browser, paste this URL,
http://localhost:8088/
and Click Get Started
.


- To stop the site, press Ctrl + C in Git Bash.
- To run the site again open Git Bash in Relax folder and run this command
yarn serve
.
End Of Pre-Lab 2