https://github.com/freeclimbapi/node-messaging-quickstart
https://github.com/freeclimbapi/node-messaging-quickstart
messaging tutorial
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/freeclimbapi/node-messaging-quickstart
- Owner: FreeClimbAPI
- Created: 2020-02-20T19:29:16.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2025-01-09T22:19:53.000Z (about 1 year ago)
- Last Synced: 2025-04-18T04:12:46.776Z (10 months ago)
- Topics: messaging, tutorial
- Language: JavaScript
- Size: 109 KB
- Stars: 0
- Watchers: 2
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Node Messaging Quickstart
This quickstart serves as a guide to get your first Messaging application up and running with [FreeClimb](https://docs.freeclimb.com/docs/how-freeclimb-works).
Specifically, the project will:
- Receive an incoming message via a FreeClimb application
- Respond "Hello World!" to the incoming message
## Tutorial
We offer a [Node Messaging Quickstart Tutorial](https://docs.freeclimb.com/docs/how-to-receive-a-message#section-nodejs) for more detailed set-up instructions and explanation of how FreeClimb works.
## Requirements
A [FreeClimb account](https://www.freeclimb.com/dashboard/signup/)
A [registered application](https://docs.freeclimb.com/docs/registering-and-configuring-an-application#register-an-app) with a named alias
A [configured FreeClimb number](https://docs.freeclimb.com/docs/getting-and-configuring-a-freeclimb-number) assigned to your application
Trial accounts: a [verified number](https://docs.freeclimb.com/docs/using-your-trial-account#verifying-outbound-numbers)
Tools:
- [Node.js](https://nodejs.org/en/download/) 12.14.0 or higher
- [Yarn](https://yarnpkg.com/en/)
- [ngrok](https://ngrok.com/download) (recommended for hosting)
## Setting up the Quickstart
1. Install the required packages
```bash
yarn install
```
2. Configure environment variables (in `.env.sample` and rename the file to `.env`):
| 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_NUMBER | The number that sends messages from your application. Your FreeClimb number. |
3. Make your local server publicly accessible
```bash
ngrok http 3000
```
Once you run ngrok you should receive a response with a public URL, that looks something like 'https://ba1c-63-209-137-19.ngrok-free.app'.
4. [Configure your applications's endpoints](https://docs.freeclimb.com/docs/registering-and-configuring-an-application#configure-your-application) by adding a publicly accessible URL (we recommend an [ngrok](https://ngrok.com/download) URL) and the route reference `/incomingSms` to your App Config's SMS URL field:
```bash
https://YOUR-URL.ngrok.io/incomingSms
```
## Running the Quickstart
1. Start your voice quickstart application
```bash
yarn start
```
2. Text the FreeClimb number assigned to the application you've configured for this tutorial
## Using Docker to Run the Quickstart
1. Pull docker image from dockerhub
```bash
docker pull freeclimbapi/node-sms-quickstart
```
2. Run docker image after replacing placeholder values
```bash
docker run -e ACCOUNT_ID= -e API_KEY= -e FREECLIMB_NUMBER= -p 3000:3000 freeclimbapi/node-sms-quickstart
```
## Feedback & Issues
If you would like to give the team feedback or you encounter a problem, please [contact support](https://www.freeclimb.com/support/) or [submit a ticket](https://freeclimb.com/dashboard/portal/support) in the dashboard.