Skip to content

twilio-samples/send-and-receive-sms-anonymously-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Send and Receive SMS Anonymously with Go and Twilio

This privacy-conscious app uses a Twilio phone number to relay SMS messages to and from your phone, masking your phone number from the public. For more details, see Twilio's blog post about SMS forwarding.

Prerequisites/Requirements

To run the code, you will need the following:

  • Go 1.22 or above
  • Composer installed globally
  • ngrok and a free ngrok account
  • A Twilio account (free or paid) with an active phone number that can send SMS. If you are new to Twilio, create a free account.

Getting Started

After cloning the code to wherever you store your Go projects, and change into the project directory. Then, copy .env.example as .env, by running the following command:

cp -v .env.example .env

Then, set MY_PHONE_NUMBER to the phone number (in E.164 format) that you want to receive SMS.

When that's done, run the following command to launch the application:

go run main.go

Then, use ngrok to create a secure tunnel between port 8080 on your local development machine and the public internet, making the application publicly accessible, by running the following command.

ngrok http 8080

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages