This is an app built with Node and Express that allows users to enter their phone number to receive an SMS text with a fun fact. The SMS integration is built using Infobip.
There are two environment variables the app needs. Create an .env
file with variables for API_KEY
and API_BASE_URL
. Those values can be obtained after creating a free account with Infobip. Once you have an account created and your .env
file populated with your secrets, follow these instructions to start the app.
yarn install
yarn start
- Navigate to http://localhost:3000 in your browser
format
: Formats the code using Prettierformat-watch
: Formats the code using Prettier in watch modestart
: Starts the app locally with a Node Express.js server running on port 3000
- API Docs: https://www.infobip.com/docs/api
- SMS API Docs: https://www.infobip.com/docs/sms/api
- API Authentication Docs: https://www.infobip.com/docs/essentials/api-authentication#api-key-header
- Various Use Cases: https://www.infobip.com/docs/use-cases
- Express.js: https://expressjs.com/
- Prettier: https://prettier.io/
- on-change: https://www.npmjs.com/package/on-change