1.4 KiB
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)
-
Create a new file named
.bashrcin your user directory -
Open the file and add the following:
alias meteor="cmd //c meteor" -
Save and close the
.bashrcfile -
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)
-
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"
- Save and close the
.bash_profilefile - Congratulations! Now the meteor command can be used in the GitBash console.
Preparation
- run
meteor npm installin root directory. - if you're using prepared database, continue to spin up your dev server
- customize connection string in
package.jsonon line 5: MONGO_URL={connectionstring} - import all jsons in folder
mongo_dumpsto 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.