Skip to content

thedittmer/pbtexts-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Extend PocketBase with Go To Send Text Messages

With a little bit of Go code and the Twilio Go Package we can send text messages with PocketBase.

Don't forget to install Go first.

Next, download this project and run this

go mod init myapp && go mod tidy
go run main.go serve

Create a new .env file with these environment variables.

TWILIO_ACCOUNT_SID="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
TWILIO_AUTH_TOKEN="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
TWILIO_NUMBER="+18888675309"

Now, create your PocketBase admin here: http://127.0.0.1:8090/_/

See PocketBase Docs for more information on how to setup PocketBase on your machine.

Texts Collection

Now create a new collection called texts in PocketBase for the text messages. It should have a text field called to, and a text field called message.

Finally, create a new record to send a text message.

SvelteKit Front End UI

Also checkout this simple user interface made with SvelteKit.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages