smart_garden_server/readme.md

1.4 KiB

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.