Skip to content

Repository for BU CASCS 660: Graduate Introduction to Database Systems

Notifications You must be signed in to change notification settings

BU-DiSC/CS660-Fall2024-pa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Assignments

Development Environment Setup

We are grading your solutions on Linux, so we suggest that you implement the assignments on Linux. That being said you should be able to use any OS of your choice if you follow these instructions.
(Note: If you use Windows, you need to install WSL.)

Setting up the environment

Linux or WSL

Run the following commands:

sudo apt update
sudo apt upgrade -y
sudo apt install -y g++ build-essential gdb make cmake valgrind

MacOS

Clang may already be installed on your Mac. To verify that it is, open a macOS Terminal window and enter the following command:

clang --version

If Clang isn't installed, enter the following command to install the command line developer tools:

xcode-select --install

Setting up an IDE

CLion

We highly recommend using the CLion IDE as it comes with the tools you need to complete your assignment. You will need a free license for CLion, which you can get by following the instructions here.

VSCode IDE

VS Code needs the following two extensions to be configured properly.

Deploying the Code

Cloning the repository

If you are using an IDE, you can clone the repository directly using the IDE. When prompted for the link to the remote repo, use this repository's link from github.

git clone <repo_url>

Building the project

CLion

Right-click on the project tree and choose "Load CMake Project". More instructions can be found here.

Running tests with CLion
(Note: Make sure the All CTest configuration is selected in the top right corner of the IDE)

VSCode

Click on the CMake tools extension on the extension pane (by default on the right side of the IDE) and click on the build icon. More instructions and tutorials can be found here.

Running tests with VSCode

Terminal

Navigate to the directory where you cloned the repo

cd CS660-Fall2024-pa

Create a build directory and navigate to it

mkdir build
cd build

Run cmake to generate the build files

cmake ..

Build the project

make

Run the tests

ctest