MARC Code Structure

MARC_Code_Sturcture

Developer Basics

Navigating Github and Contributing to the Code

It can be difficult to code in the terminal of your computer. We therefore suggest downloading an Integrated Developer Environment (IDE) such as Wing IDE, Pycharm, Visual Studio for you to code in. Finally, you may have to link the path of your MARC download (i.e. “file_path_to_marc/MARC/trunk” ) to your IDE.

GitHub 

GitHub is essentially “Google Drive” for coders. It allows groups of people to collaborate, share code, store projects, and track progress. Here is a nice short video of the basics of GitHub. We have also provided a list of some of the most frequently used git commands below. Note that this is not an exhaustive list of commands.

GitHub Desktop 

A highly recommended alternative to pushing local changes to the cloud or pulling the most recent version of your code from the cloud via the terminal is to use GitHub Desktop, an interface that handles all the backend for you, allowing you to focus on coding!

Useful Git Commands 

On your computer navigate to where you want to put the MARC repo. Open a terminal and run the following command: git clone https://github.com/mitleads/MARC.git


git status


git add <path of file from git repo base>


git add .


git add -u

git add <filename> (note that the file name starts off with the trunk folder i.e. first folder in


git fetch


git ignore 


git diff


git diff --cached


git commit - m “<enter what the commit is about>” 


git push


git pull <branch name>


git stash 


git reset --HARD


git checkout <origin branch> <filename> (don/t include <>)


git checkout --ours <path/to/conflict-file.css> (don/t include <>)