DEV Community

Cover image for Declare Your Love Like a Programmer ❤️

Declare Your Love Like a Programmer ❤️

Florin Pop on February 14, 2020

Originally posted on www.florin-pop.com Today is Valentines Day! 😍 How nice would it be if you sent a Romantic Message every hour to your love...
Collapse
 
garador profile image
Garador • Edited

This made me remember of a story I read somewhere sometime (yeah, quite vague reference) where this certain dude programmed a cronjob to send poems to her girlfriend each X amount of time... Mind you, this was done when back we used floppy drives... And he developed this on his job's infrastructure...

However, he had a bug. Something went terribly wrong, and the production env. Went down HARD..

It's amazing we now have enough resources to make this on our own. We can make so much more today...

Collapse
 
thenewmona profile image
Ramona Saintandre

This is both my first nodeJS and API project.

I got this message from Twilio:
We have detected that your Twilio API credentials have been compromised. It is urgent that you take immediate action to secure your account as this poses a security risk and could lead to unauthorized activity or excessive charges.

is there a different way to hide this besides creating a .env file?

I am on my work computer right now, and I don't want to mess with the environment here.

Thanks

Collapse
 
philnash profile image
Phil Nash

Did you push the project to GitHub, including the config.js file? That would have caused the Twilio and GitHub monitoring systems to spot it and send you that email.

Hopefully you have already logged in and updated your auth token.

If you have hidden credentials like this before using .env files then the secret really is that .env files are likely to appear in your .gitignore file and never get committed to your repo. You can add config.js to the project's .gitignore file for this project, or, better for the future, update this project to use environment variables and dotenv (or similar).

Let me know if I can help any further.

Collapse
 
florinpop17 profile image
Florin Pop

I'm not sure why you got that error... I didn't 🤔

Collapse
 
philnash profile image
Phil Nash

Great post! I hope that your loved one appreciated all the messages!

Collapse
 
tobiassn profile image
Tobias SN

They might not love you back after the 10th message.

Collapse
 
florinpop17 profile image
Florin Pop

True... It might be the next level of love. 😂