Skip to content

Generic Node Deployment

Brad McAllister edited this page Oct 6, 2017 · 2 revisions

These instructions assume that you already have nodejs and mongoDB installed in your environment.

  1. Clone this repo into the the location of your choice. git clone https://github.com/bdm1981/roomRequest-Spark-Bot.git

  2. Create your own .env file by running the following command from the root directory of roomRequest. cp samples/.env-sample ./.env

  3. In your text editor of choice, open the .env file and update it with the data created in the prerequisite steps.

  4. Next run npm install. This will install all the nope dependancies. After the install is complete, the scripts/postinstall.js script will run. This script checks to see if a building collection exists in the DB you provided. If not, it will create the collection with a sample building called ORD.

  5. type node app.js to launch roomRequest.

  6. If everything worked properly, you should be able to send your bot a message from Spark!

Clone this wiki locally