|server 53bc33fc3e||4 months ago|
|.circleci||8 months ago|
|app||4 months ago|
|bin||3 years ago|
|config||7 months ago|
|db||5 months ago|
|docker_configs||8 months ago|
|frontend||4 months ago|
|lib||5 months ago|
|public||5 months ago|
|spec||4 months ago|
|.buildpacks||4 years ago|
|.codebeatignore||1 year ago|
|.codeclimate.yml||2 years ago|
|.coveralls.yml||3 years ago|
|.gitignore||9 months ago|
|.npmrc||1 year ago|
|.ruby-gemset||5 years ago|
|.ruby-version||8 months ago|
|.sass-lint.yml||1 year ago|
|CONTRIBUTING.md||2 years ago|
|DEPLOYMENT.md||2 years ago|
|Gemfile||5 months ago|
|Gemfile.lock||5 months ago|
|ISSUE_TEMPLATE||2 years ago|
|LICENSE||2 years ago|
|Procfile||1 year ago|
|README.md||1 year ago|
|Rakefile||5 years ago|
|SECURITY.md||1 year ago|
|api_docs.md.erb||2 years ago|
|auto_upgrade.rb||2 years ago|
|batch_updates.md||2 years ago|
|config.ru||6 years ago|
|debian_example.sh||4 months ago|
|docker-compose.yml||10 months ago|
|example.env||8 months ago|
|jest.config.js||4 months ago|
|latest_corpus.rb||1 year ago|
|package.json||4 months ago|
|run_all_ci_tasks.sh||1 year ago|
|tsconfig.json||7 months ago|
|tslint.json||7 months ago|
|ubuntu_example.sh||7 months ago|
End users should not run this software.
There are only a handful of use cases where running a third party server is advisable:
FarmBot, Inc. provides a publicly accessible server at https://my.farm.bot/ for end users that are not familiar with Ruby on Rails application development. Hosting your own server will require an understanding of how Ruby on Rails applications (and databases) operate. It is designed for use by software engineers. Self-hosting the Web App will not provide you with a more stable user experience and may result in accidental security issues or data loss.
If you are not a Ruby on Rails developer, or you have never written a Ruby on Rails application, you are encouraged to use the publicly available web app. Running a server is a non-trivial task with security implications. Data loss and security issues are possible in some circumstances. Self hosting requires an intermediate background in Ruby, SQL and Linux system administration.
We do not have the resources available to help novice developers learn to setup servers, environments, configurations, or perform basic Linux command line instructions.
We take security seriously and value the input of independent researchers. Please see our responsible disclosure guidelines.
This repo contains FarmBot’s web based user interface, a RESTful JSON API and a Dockerized MQTT server. The API stores data such as user account information, plant data, authorization tokens and a variety of other resources. The MQTT server facilitates realtime messaging from the browser to the device.
For a list of example API requests and responses, see our reference documentation. If you wish to write an add-on application that uses the FarmBot API, please let us know in an issue. We are happy to answer any specific questions you may have.
If you are not a software developer with Ruby on Rails experience, you should not set up a server. Data loss and security vulnerabilities are possible.
We provide example setup instructions for software developers running Ubuntu 18 here.
Installation was last tested against Ubuntu 18.04 in October of 2018 on an x86 based machine.
Our ability to help individual users with private setup is limited. Using the public server at http://my.farm.bot is the recommended setup for end users. Please see the top of this document for more information.
You can accomplish this by setting the ENV variables directly from your shell / server management tool or by writing an
.env file in server’s base directory.
example.env for a list of all the variables that must be set.
Encryption keys: Encryption keys will be auto-generated if not present. They can be reset using
rake keys:generate. If
ENV['RSA_KEY'] is set, it will be used in place of the
*.pem files. This is useful for environments like Heroku and Docker, where file system access is not allowed.
Thanks for your interest in internationalizing the FarmBot web app! To add translations:
/public/app-resources/languagesand run the command
node _helper.js yywhere
yyis your language’s language code. Eg:
"phrase": "translated phrase".
Raise an issue if you have any questions.
If you raise an issue indicating that you haven’t followed the setup instructions, looked through past issues, or done a cursory internet search for basic help, expect the issue to be closed and we’ll point you to the setup instructions. Again, if you do not have at least intermediate Linux and Ruby experience, please use the hosted version of the web app at my.farm.bot. Running a self-hosted server is not easy!