Skip to content

Latest commit

 

History

History
95 lines (63 loc) · 3.06 KB

README.md

File metadata and controls

95 lines (63 loc) · 3.06 KB

Twilio Hackathon App

About

This app simplifies communication via sms when handling students in the remote classroom.

How it works

An instructor signs up and chooses a phone number to represent their class. From there they can invite students to the class via text, and communicate back and forth.

Features

How to use it

  1. Install Docker
  2. Change env.example to .env and fill in variables
  3. Run docker-compose up --build

Set up

Requirements

App .env Variables

Config Value Description
HOST The ngrok url that you get after running ngrok http 3030 (use reg http, not https)
TWILIO_ACCOUNT_SID Your primary Twilio account identifier - find this in the Console.
TWILIO_AUTH_TOKEN Used to authenticate - just like the above, you'll find this here.
PUSHER_APP_ID Your pusher app id
PUSHER_APP_KEY Your pusher app App key (this also needs to be added into the assets/pusher.js file)
PUSHER_APP_SECRET Your pusher app secret
PUSHER_CLUSTER The cluster your app region is in
MAIL_USER mailtrap user - shown in dashboard
MAIL_PASSWORD mailtrap password - also shown in dashboard

Local development

After the above requirements have been met:

  1. Clone this repository and cd into it
git clone ...
cd ...
  1. Set your environment variables
cp .env.example .env

See above to locate the necessary environment variables.

  1. Build and Run
docker-compose up --build
  1. Navigate to your Ngrok host and view the application.

That's it!

Tests

You can run the tests locally by typing:

npm test

TODO

License

MIT

Disclaimer

No warranty expressed or implied. Software is as is.