This is a quick guide on how to contribute to XBOS and where code contributions should go.
- Create a free GitHub account
- Install Git on your computer
- do this through your favorite package manager if you are familiar with command-line interfaces
- OR, install the GitHub desktop application (Mac OS X or Windoze), which has helpful documentation. Don't forget to set it up
Collaboration happens by making edits to your own "fork" of the XBOS project; when your changes are ready for others to use or test, you can submit a "pull request". This section discusses how to set up the fork the first time. This only needs to be done once.
- Begin by forking the XBOS project by clicking the "Fork" button in the top-right. This will create a copy of the project under your own account. You can make changes to this copy without affecting the main XBOS project.
- Clone the new project under your account
The XBOS project has several folders used to organize its various components. Depending on what you are contributing, it should go in a different folder.
apps/
: contains end-use applications for doing control, analysis, etc.dashboards/
: contains code for user-facing dashboardsservices/
: contains code for applications that are used by other applications
If you are unsure where something should go, just ask!
After making your edits on your local copy, go through a quick checklist:
- have you written documentation on how your code works and how it is intended to be used?
- this can be done in a
README.md
file
- this can be done in a
- if you are contributing Python code, have you included a
requirements.txt
file containing the dependencies? - make sure you remove all passwords, usernames, IP addresses and other identifying information for the systems you are developing against
Commit your changes to your local repo (desktop instructions), and then file a pull request (desktop instructions).