Try   HackMD

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

  1. Review The Relational Algebra Operations.
  2. 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:

  1. Read Section 2.6 (The Relational Algebra) in the Textbook.
  2. Install node.js (v12.16.0).
  3. Install Yarn.
  4. Install Git.
  5. 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.

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

  • Run this command npm i yarn.

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

Install Git

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

How to Run RelaX - relational algebra calculator

  1. Create new folder, name it Lab2, and open it.
  2. Click right on any place inside Lab2 folder, and click Git Bash Here.

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

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

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

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

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

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

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

  1. Run this command yarn serve.

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

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

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

  1. To stop the site, press Ctrl + C in Git Bash.
  2. To run the site again open Git Bash in Relax folder and run this command yarn serve.
tags: Database Systems Pre-Lab IUG Computer Engineering
End Of Pre-Lab 2