-
Notifications
You must be signed in to change notification settings - Fork 0
Local Development Environment
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
Programs to install:
- Python
- PyMongo (a driver for python)
- Github Desktop
- Sublime (or any editor you prefer)
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!
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
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.
This is the editor of my preference, it makes things colorful.
Programs to install:
- Python
- PyMongo (a driver for python)
- Github Desktop
- Sublime (or any editor you prefer)
To install python click the link below to download the installation file. Make sure to download the 2.7.X version.
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
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
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.
This is the editor of my preference, it makes things colorful.
By Michael Leonffu & Cameron DeMille March 25, 2017; Last edited by Michael Leonffu March 27, 2017