Skip to content

emilsharier/ecode-url-shortener

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ecode URL shortener

This is a personal URL shortener bot built using Twilio API in nodejs. The backend database used is postgreSQL.

Screenshot

Bot in action

Want one for yourself ?

  1. Head over to Twilio's website
  2. Create an account and login if you haven't and configure your number with the Twilio whatsapp sandbox
  3. Follow the instructions you find on the website
  4. Now head over to Heroku to deploy the bot. Sign up if you haven't already and login
  5. Create an application and add heroku-postgres as a resource
  6. Alright now your database and heroku is all set up and ready
  7. Deploying the bot
    • Clone this repository

    • Create a .env file containing the following information. (Ignore the #Required and #Optional lines)

        #Required ~ Important
        ACCOUNT_SID=<The SID that you can get from Twilio dashboard>
        AUTH_TOKEN=<The SID that you can get from Twilio dashboard>
        DOMAIN=<Put your custom domain link here or just put the herokuapp link>
        
        #Optional ~ meh
        PORT=<Custom PORT number> [Not necessarily required]
      
    • Push code to heroku using heroku cli or deploy the app by connecting the Github repo to Heroku.

  8. Test by sending a link to the bot

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published