Go to file
2021-10-30 11:41:39 +02:00
.meteor docker-compose 2021-10-29 22:56:11 +02:00
client Commented all methods and added max temperature for plant types. 2020-07-30 13:30:03 +02:00
imports Commented all methods and added max temperature for plant types. 2020-07-30 13:30:03 +02:00
mongo_dumps added readme and dumps 2020-07-30 17:17:21 +02:00
server Forgott to uncomment the mqttObserver method. 2020-07-30 13:31:10 +02:00
tests Reload 2020-07-05 19:18:23 +02:00
.dockerignore docker v2 2020-07-23 20:57:39 +02:00
.DS_Store docker-compose 2021-10-29 22:56:11 +02:00
.gitignore docker-compose 2021-10-29 22:56:11 +02:00
docker-compose.yml open ports 2021-10-30 11:41:39 +02:00
Dockerfile v3 2020-07-23 21:47:23 +02:00
mongo-mqtt.js changed dns 2021-10-30 11:16:34 +02:00
package-lock.json change paths 2021-10-30 10:19:31 +02:00
package.json changed dns 2021-10-30 11:16:34 +02:00
readme.md added readme and dumps 2020-07-30 17:17:21 +02:00

Smart_Garden

Requirements

  • Node und NPM (see Meteor docs for minimum version)
  • Meteor CLI installed on your Environment
  • MongoDB running (you can use prepared database as defined below)

How to use the "meteor" command in the GitBash console (Windows)

  1. Create a new file named .bashrc in your user directory

  2. Open the file and add the following: alias meteor="cmd //c meteor"

  3. Save and close the .bashrc file

  4. Open your ".bash_profile" file in the user directory (if you do not have this file, change something in you GitBash console like color or style, then the file will be created)

  5. Go to the bottom of the file and add the following:

Allow usage of meteor command in git bash

# Allow usage of meteor command in git bash
[ -f "$HOME/.bashrc" ]
source "$HOME/.bashrc"
  1. Save and close the .bash_profile file
  2. Congratulations! Now the meteor command can be used in the GitBash console.

Preparation

  • run meteor npm install in root directory.
  • if you're using prepared database, continue to spin up your dev server
  • customize connection string in package.json on line 5: MONGO_URL={connectionstring}
  • import all jsons in folder mongo_dumps to your mongoDB. Name the collections as the filename indicates.

Spin up development server

run npm run start in root directory. If you're running Windows, make sure you use git-bash. otherwise you can't pass environment variables to cli-commands.