Skip to content

A guide to help new developers set up their development environment.

License

Notifications You must be signed in to change notification settings

mn-pollinators/getting-started

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Getting Started

This is a guide to setting up a development environment for the Minnesota Pollinators projects, aimed at new students. You may already have some of the necessary programs installed—if so, you can just skip those steps!

This document draws from prior writeups by Paul Friederichsen and Prof. Nic McPhee.

Table of Contents

Creating a GitHub Account

All of the code for Minnesota Pollinators—along with its revision history—is stored on GitHub, a website for hosting software projects. To work on Minnesota Pollinators, you'll need to sign up for a GitHub account here.

GitHub's "sign up" page

You'll want to join the Minnesota Pollinators organization (Prof. KK Lamberty can invite you).

If you're a student at Morris, be sure to sign up for the GitHub Student Developer Pack as well!

Installing Visual Studio Code

Next, in order to read and write the code, you're going to need a text editor. There are a lot of good options, but the one that we've been using is Visual Studio Code, particularly because of its Live Share feature.

Visual Studio Code

When you open Visual Studio Code for the first time, you might get a pop-up in the bottom-right corner asking if you'd like to install the recommended extensions for this workspace. These are things like better autocomplete, spell checking, and warning messages—go ahead and install them.

Installing git

git is a version-control system: it keeps track of all of the changes made to the project, and lets several people work on the same code in parallel.

On Windows

If you're on Windows, you can go here to download git.

When the installer asks you to choose the default editor, you may want to select Visual Studio Code. Other than that, the default options should be just fine.

The git installer program on Windows, asking what the default editor should be, with "Visual Studio Code" selected

On a Mac

If you're on a Mac, you can get git as part of the Xcode command-line developer tools. Open up Terminal and type git --version:

Terminal with the command "git --version" typed

You'll get a pop-up asking you to install the developer tools:

The pop-up window asking if you'd like to install the tools

If you don't get a pop-up, but instead get a version number like this, that means git is already installed.

Terminal showing the command "git --version" and the output "git version 2.24.3 (Apple Git-128)"

Installing GitKraken

git by itself is very spare, so we've been using it through a program called GitKraken. (This program has a nice chart showing all of the revisions over time.) You can use GitKraken for free, but if you're a Morris student, you have access to the pro version through the GitHub Student Developer Pack.

The screen GitKraken shows when it first launches

Once you've installed GitKraken, you're going to want to download the Minnesota Pollinators code onto your computer. To do this, click the "Clone a repo" button on the left side of GitKraken, and type in the git URL for the project.

(You can find the git URL of any repository by going to that repository's page on GitHub and looking under the "Code" dropdown. Here's the git URL for Buzz About:)

The GitHub page for Buzz About, with the "Code" dropdown menu open, showing the title "Clone with HTTPS" and the start of the URL

Now, you should be able to see the whole history of the project!

The screen that GitKraken shows when you've opened a repo

Generally speaking, you will want to create a branch for any feature or change you wish to contribute, and then make a pull request in GitHub when you think it is ready for review to be added to the main branch in the repository. You can check out any branch locally using GitKraken by double-clicking it.

Installing Node.js

At this point, you should have all of the code for a repository on your computer, but you still don't have a way to compile and run it. For that, you'll need to install Node.js, a JavaScript runtime.

You can download Node.js, along with its associated command-line tools, here. The LTS (long-term support) version should be fine.

On Windows, you'll be asked if you want to install tools for native modules. We don't have any native modules in this project, but you'll probably want to check that box anyway, in case you want to install any in the future. (Installing tools for native modules may take a while.)

The Node.js installer asking whether you'd like tools for native modules, with the checkbox checked

About

A guide to help new developers set up their development environment.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published