Skip to content

Local Development Environment

Michael Leonffu edited this page Mar 28, 2017 · 5 revisions

Setting up a local development environment is an important step to start developing. This page will outline how to set up the minimalistic development environment for The Orange Alliance. Supported development platforms are: HTML, CSS, and Python.

This python article might also help

macOS

Programs to install:

Python

Guess what? Most macOS has python preinstalled! Meaning you don't need to install python!

To check if you do have python and the correct version open terminal and use this command

$ python --version

If you have version 2.7 and above you are fine!

PyMongo

Once you have python you have to install a driver to connect to MongoDB, the data base we use. Run this command to install pymongo.

$ python -m easy_install pymongo

Github

Yay now you have all the programs you need to develop! All you need next are the tools to develop; Github Desktop is an easy way to pull, commit, and push code you change.

Once installed go to the repository and go to 'clone or download' then click desktop to open it in GitHub Desktop.

If you are a cool cat you can just use git in terminal. Or you can use Source Tree which is a more complex GitHub Desktop.

Sublime

This is the editor of my preference, it makes things colorful.

Sublime Download page

Windows

Programs to install:

Python

To install python click the link below to download the installation file. Make sure to download the 2.7.X version.

Python Download page

Once installed, an environment variable has to be setup to direct python commands to the correct directory. To do this go to Control Panel > System and Security > System and click Advanced System Settings. After clicking it click Environment Variables under the Advanced Tab. Once the window opens up go under user variables and click new. Name the variable PATH and enter in the path to python as the value (Default path is set to C:\Python27). Click ok, ok again, then click apply. If the PATH variable already exists then edit the variable and add in the path.

To check if python was installed correctly and the environment variable is setup correctly open up cmd (Command Prompt) and enter in the following command:

python --version

PyMongo

Once you have python you have to install a driver to connect to MongoDB, the data base we use. Run this command to install pymongo.

python -m easy_install pymongo

Github

Yay now you have all the programs you need to develop! All you need next are the tools to develop; Github Desktop is an easy way to pull, commit, and push code you change.

Once installed go to the repository and go to 'clone or download' then click desktop to open it in GitHub Desktop.

Imagine a picture showing you what you want to see.

If you are a cool cat you can just use git in terminal. Or you can use Source Tree which is a more complex GitHub Desktop.

Sublime

This is the editor of my preference, it makes things colorful.

Sublime Download page

By Michael Leonffu & Cameron DeMille March 25, 2017; Last edited by Michael Leonffu March 27, 2017