Skip to content
No description, website, or topics provided.
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
assets
bin
data
lib
.gitignore
.travis.yml
LICENSE
README.md
avatar.gif
config.json.sample
package.json

README.md

guerlain-slackbot

##Setup ###install node env For clarity : We'll presume you have npm and mongobb installed on your system.

Install node dependencies for the project : npm install

###set up your config Your must rename config.json.sample cp config.json.sample config.json

Edit config.json to set both your dev and production environement parameters (production parameters can wait)

##Run

###db To launch mongod & use dbpath 'project_dir/data/db' (from project directory): mondod --dbpath ./data/db Alternatively you can launch mongo and use default path mongod

if needed, remove tmp file to open clean socket to db (mac os X): rm /tmp/mongodb-27017.sock rm data/db/mongod.lock

###node You can optionnally specify "on the fly" parameters to run with use of a bot api key or a temporary path to your mongo db user environement parameters BOT_API_KEY and MONGO_URI for node server to launch bot.js script

To run dev project via nodemon : ``[BOT_API_KEY=you_bot_api_key] [MONGO_URI=complete_uri_to_your_mongo_db_on_server] nodemon ./lib/bot.js`

To run dev project via node : ``[BOT_API_KEY=you_bot_api_key] [MONGO_URI=complete_uri_to_your_mongo_db_on_server] node ./lib/bot.js`

You can’t perform that action at this time.