Go to file
server 53bc33fc3e Example Debian Buster install script 2020-05-08 15:34:21 -06:00
.circleci update circle config coverage check 2020-01-28 12:16:45 -08:00
app Merge branch 'staging' into point_meta_updates 2020-05-06 15:10:17 -05:00
bin Add more fields, validations to image and start writing model tests. 2017-01-11 09:27:06 -06:00
config Remove diag dumps 2020-02-04 13:42:40 -06:00
db Update structure.sql 2020-04-12 10:55:08 -05:00
docker_configs upgrade node version 2020-01-23 16:04:34 -08:00
frontend dep updates (fe) 2020-05-08 13:27:15 -07:00
lib update coverage task 2020-04-23 16:55:52 -07:00
public use Weed instead of GenericPointer for weeds 2020-04-02 10:24:33 -07:00
spec Merge branch 'staging' into point_meta_updates 2020-05-06 15:10:17 -05:00
.buildpacks use heroku-postbuild 2016-09-22 11:17:12 -05:00
.codebeatignore More webpack reference removals. 2019-01-30 08:00:26 -06:00
.codeclimate.yml Exclude db/ folder from code quality metrics 2018-03-07 09:14:20 -06:00
.coveralls.yml Add coveralls repo token 2017-07-20 11:16:18 -05:00
.gitignore added .idea folder to .gitignore 2019-12-16 15:35:01 +01:00
.npmrc dep updates 2019-01-07 17:17:24 -08:00
.ruby-gemset rename application from `dss` to `farmbot` 2015-03-09 05:31:05 -05:00
.ruby-version Revert Ruby 2.7.0 upgrade for now. 2020-01-07 10:03:27 -06:00
.sass-lint.yml More webpack reference removals. 2019-01-30 08:00:26 -06:00
CONTRIBUTING.md Update the CLA link again 2018-03-23 18:06:57 -07:00
DEPLOYMENT.md Shuffle files around better, remove more legacy references. Ready for one last QA round 2018-10-02 08:57:59 -05:00
Gemfile Dep updates 2020-04-12 10:33:49 -05:00
Gemfile.lock Dep updates 2020-04-12 10:33:49 -05:00
ISSUE_TEMPLATE Update Self Hosted Docs. Closes #868 2018-05-27 13:41:18 -05:00
LICENSE Shuffle files around better, remove more legacy references. Ready for one last QA round 2018-10-02 08:57:59 -05:00
Procfile Preboot removal, part III 2019-07-17 15:22:50 -05:00
README.md update URLs 2019-05-20 13:16:10 -07:00
Rakefile Cruft removal, part I 2015-10-20 13:03:42 -05:00
SECURITY.md update security 2019-07-29 10:54:07 -07:00
api_docs.md.erb .success? => successful? (Rails 6 deprecation warning) 2018-06-26 14:20:20 -05:00
auto_upgrade.rb Diagnostic Dumps - RC 1 (#889) 2018-06-18 16:12:00 -05:00
batch_updates.md Change segment order for batch resource topics 2018-07-30 16:49:14 -05:00
config.ru Added foundation and high voltage. Readme updates, too. 2014-03-31 06:31:38 -07:00
debian_example.sh Example Debian Buster install script 2020-05-08 15:34:21 -06:00
docker-compose.yml Interpolate API_PORT into docker-compose.yml. Fixes #1598 2019-11-25 13:24:14 -06:00
example.env Add SMTP indication in example.env 2020-01-09 11:25:42 +01:00
jest.config.js dep updates (fe) 2020-05-08 13:27:15 -07:00
latest_corpus.rb Updates to corpus + generator. 2019-02-25 15:58:01 -06:00
package.json dep updates (fe) 2020-05-08 13:27:15 -07:00
run_all_ci_tasks.sh misc 2019-02-15 15:46:27 -08:00
tsconfig.json dep updates (fe) 2020-02-24 08:55:37 -08:00
tslint.json fix commas 2020-02-28 08:35:32 -08:00
ubuntu_example.sh Update ubuntu_setup.sh 2020-02-05 09:01:34 -06:00

README.md

FarmBot Web App

codebeat badge codecov Coverage Status Maintainability

😎🆕 Documentation to help software developers write add-ons and plugins for FarmBot👀

Q: Do I need this?

End users should not run this software.

There are only a handful of use cases where running a third party server is advisable:

  • Development of new features, bug fixes and pull requests.
  • Independent security research and auditing.

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.

Q: Where do I report security issues?

We take security seriously and value the input of independent researchers. Please see our responsible disclosure guidelines.

Q: What is the Farmbot Web App?

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.

Q: Can I see some example API requests?

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.

Q: How do I Setup an instance locally?

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.

Config Settings (important)

We follow the 12 Factor Methodology. As such, ENV variables are the primary means of storing configuration. Your server won't run without setting ENV variables first.

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.

See 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.

Translating the Web App into Your Language

Thanks for your interest in internationalizing the FarmBot web app! To add translations:

  1. Fork this repo
  2. Navigate to /public/app-resources/languages and run the command node _helper.js yy where yy is your language's language code. Eg: ru for Russian.
  3. Edit the translations in the file created in the previous step: "phrase": "translated phrase".
  4. When you have updated or added new translations, commit/push your changes and submit a pull request.

Want to Help?

Low Hanging Fruit.

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!