yzxchn / ShelterTechCasseySMS

1 stars 0 forks source link

ShelterTech Cassey SMS

Overview

This repository contains code for ShelterTech Cassey SMS, a chatbot that aims to help homeless people, through basic SMS. The project is currently under development.

System Architechture

The chatbot contains, for the most part, 3 components:

Setting up the local development environment

  1. Install node.js. Make sure you can use the node command in your terminal.
  2. Clone this repository and open it.
    git clone git@github.com:yzxchn/ShelterTechCasseySMS.git
    cd ShelterTechCasseySMS
  3. Download the required node packages:
    npm install

    this command would install the packages specified in package.json.

  4. Get the config file by pinging me through email/Slack, and put the file in the root directory of the project.
  5. Test and make sure you can run the server successfully:
    NODE_ENV=local node app.js

    The NODE_ENV=local part tells the app that it is running in the local environment, which has different configurations compared to, say, the dev environment.

  6. Download ngrok
  7. Start ngrok by typing the following command:
    /path/to/ngrok http <NODE_APP_PORT>

    where /path/to/ngrok is where you put the downloaded file. If it is in your current working directory, then it should be ./ngrok. <NODE_APP_PORT> is the port number the app is running on after you typed the command in step 5.

  8. Now you should have an https URL for the app running on your machine. Use this URL to connect it to the Facebook app.