-
Notifications
You must be signed in to change notification settings - Fork 619
Environment
This page contains information that is intended to help start hacking on Peloton. It covers a wide set of topics related to software development, like development environment, debugging, version control etc. We are only attempting to provide biased suggestions that we think are invaluable for low-level software development. Feel free to deviate from them in case you are comfortable with other tools that solve similar problems.
We prefer the Linux OS for development and testing. You can use any other OS for development as long as your modified source code can be built and run on Linux.
In case you are a Mac OS or Windows user, we encourage you to consider using Virtual Box and Vagrant. Virtual Box is a hypervisor for x86 computers, and Vagrant is a tool for sharing easy to configure virtual development environments. More information is available here.
We are developing Peloton in C++. In particular, we are following the C++11 standard. Here's a succinct reference for the language. C++ provides a lot of leeway in DBMS development compared to other high-level languages. It has several features that can simplify your life.
These tools are installed by the Vagrantfile.
- eclipse-4.4 Eclipse Luna
- tmux Terminal Multiplexer
- zsh Z Shell
We use Eclipse for development. First, install the EGit plug-in that enables Eclipse to work with Git repositories.
-
Create a new workspace for Eclipse (if necessary).
-
Select
File -> Import -> Git -> Projectsfrom Git. -
When the next panel comes up, click the
Clonebutton. In the next window, enter the path to the Github repository into the URI field at Location:[email protected]:cmu-db/peloton.git. Then, clickNext. -
In the next panel you can select which branches you wish to clone from the remote repository. You most likely only need to clone the
masterbranch. Then, clickNext. -
Select the location on your local machine where you wish to store your cloned repository. You can leave the other defaults. Then, click
Finish. -
It will now begin to pull down the repository. Once it’s finished, select
peloton. Then, clickNext. -
In the next panel, select the
Import Existing Projectsoption at the top. Then, clickNext. -
In the next page, select the
pelotoncheckbox. ClickFinish. Have fun hacking !