4.3: Mastodon Bot - Environment Variables in Node with dotenv

Subscribers:
1,740,000
Published on ● Video Link: https://www.youtube.com/watch?v=B8ireAeWRQk



Duration: 6:13
8,502 views
182


In this video, I cover the node.js "dotenv" package and show how to save API credentials as environment variables. Code: https://thecodingtrain.com/tracks/mastodon/mastodon/environmental-variables-in-node

💻 Github Repo: https://github.com/CodingTrain/Mastodon-Bot

References:
🦏 Mastodon: https://mastodon.social/about
🤖 Botsin.space server: https://botsin.space/about/more
💻 Mastodon API on npm: https://www.npmjs.com/package/mastodon-api
💻 dotenv on npm: https://www.npmjs.com/package/dotenv

Videos:
🚂 Mastodon Playlist: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6byiVX7_Z1rclitVhMBmNFQ

Timestamps:
0:00 Hiding API credentials
3:10 Grab environmental variables
4:51 Add .env file to gitignore

Editing by Mathieu Blanchette
Animations by Jason Heglund
Music from Epidemic Sound

🚂 Website: http://thecodingtrain.com/
👾 Share Your Creation! https://thecodingtrain.com/guides/passenger-showcase-guide
🚩 Suggest Topics: https://github.com/CodingTrain/Suggestion-Box
💡 GitHub: https://github.com/CodingTrain
💬 Discord: https://thecodingtrain.com/discord
💖 Membership: http://youtube.com/thecodingtrain/join
🛒 Store: https://standard.tv/codingtrain
🖋️ Twitter: https://twitter.com/thecodingtrain
📸 Instagram: https://www.instagram.com/the.coding.train/

🎥 Coding Challenges: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
🎥 Intro to Programming: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6Zy51Q-x9tMWIv9cueOFTFA

🔗 p5.js: https://p5js.org
🔗 p5.js Web Editor: https://editor.p5js.org/
🔗 Processing: https://processing.org

📄 Code of Conduct: https://github.com/CodingTrain/Code-of-Conduct

This description was auto-generated. If you see a problem, please open an issue: https://github.com/CodingTrain/thecodingtrain.com/issues/new

#mastodon #dotenv #nodejs







Tags:
programming
daniel shiffman
tutorial
coding
the coding train
lissajous
coding challenge
coding train
creative coding
live stream
mastodon
mastodon bot
mastodon bot tutorial
social media bot
twitter bot
mastodon api
mastodon js
mastodon node
node bot
nodejs bot
dotenv
node js
node.js
nodejs
node dotenv
npm dotenv
environment variables