https://github.com/freeclimbapi/node-movie-quotes-app
Node sample application that will send a movie quote to a person via text message, respond to a text with a movie quote, call a person and play a movie quote, and receive a phone call and play a movie quote
https://github.com/freeclimbapi/node-movie-quotes-app
sample-app
Last synced: about 1 month ago
JSON representation
Node sample application that will send a movie quote to a person via text message, respond to a text with a movie quote, call a person and play a movie quote, and receive a phone call and play a movie quote
- Host: GitHub
- URL: https://github.com/freeclimbapi/node-movie-quotes-app
- Owner: FreeClimbAPI
- Created: 2019-11-21T15:54:40.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-11T14:18:55.000Z (over 3 years ago)
- Last Synced: 2025-01-02T05:27:32.631Z (over 1 year ago)
- Topics: sample-app
- Language: JavaScript
- Homepage:
- Size: 523 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Movie Quote Application
This project serves as a guide to help you build an application with FreeClimb. Specifically, the project will:
- Send a movie quote to a person via text message
- Respond to a text with a movie quote
- Call a person and play a movie quote
- Receive a phone call and play a movie quote
## Setting up your new app within your FreeClimb account
To get started using a FreeClimb account, follow the instructions [here](https://docs.freeclimb.com/docs/getting-started-with-freeclimb).
## Setting up the Movie Quote Application locally
1. Download and install [Node.js](https://nodejs.org)
2. Install yarn globally [Mac OS](https://yarnpkg.com/lang/en/docs/install/#mac-stable) | [Windows](https://yarnpkg.com/lang/en/docs/install/#windows-stable)
3. Clone or download this repo locally.
4. Install the node packages necessary using command:
```bash
yarn install
```
5. Configure environment variables (this tutorial uses the [dotenv package](https://www.npmjs.com/package/dotenv)).
| ENV VARIABLE | DESCRIPTION |
| ----------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| ACCOUNT_ID | Account ID which can be found under [API credentials](https://www.freeclimb.com/dashboard/portal/account/authentication) in Dashboard |
| API_KEY | API key which can be found under [API credentials](https://www.freeclimb.com/dashboard/portal/account/authentication) in Dashboard |
| FREECLIMB_PHONE_NUMBER | FreeClimb Phone Number associated with Movie Quote Application found under [My Numbers](https://www.freeclimb.com/dashboard/portal/numbers) in Dashboard (**E.164 format**) |
| FREECLIMB_APP_ID | Application ID associated with FreeClimb Movie Quote Application found under [Apps](https://www.freeclimb.com/dashboard/portal/applications) in Dashboard |
| HOST_URL | URL for hosted Movie Quote Application |
## Using the Movie Quote Application
### Responding to Incoming Calls and Texts
1. Run the application using command:
```bash
$ node src/app
Express server listening on port 80
```
2. Call or text your FreeClimb phone number and expect a funny movie quote in response.
### Making Outgoing Calls and Texts
1. Sending movie quote via text (where +1XXXXXXXXXX represents the E.164 formatted phone number the quote should go to):
```bash
$ node src/main text +1XXXXXXXXXX
Sent Text Message: The random quote: "I'm about to do to you what Limp Bizkit did to music in the late '90s."
```
2. Sending movie quote via call (where +1XXXXXXXXXX represents the E.164 formatted phone number the quote should go to):
```bash
$ node src/main call +1XXXXXXXXXX
Initiated a call using FreeClimb
```
## Getting Help
If you are experiencing difficulties, [contact support](https://freeclimb.com/support).