learn hapi — Environment Variables and Storing Secrets

Environment Variables and Storing Secrets

You’re jumping right into the first practical tutorial! Even though the title sounds very much like non-stop theory, you’ll just walk through basics on how to keep secrets (sensitive data) out of your project and repository. Afterwards, it’s time to put your knowledge into practice and extend your Futureflix app by separating configuration from code.

You know, storing secrets within your project’s code is done quickly. It starts with a username/password combination for the database authentication, followed by client IDs and secrets when consuming OAuth APIs, credentials or API tokens to send mails with an SMTP service, and many more.

Avoid storing these secrets within your project’s code base! This tutorial shows you how to set up your project to keep sensitive data separated.

hapi Series Overview


Continue reading

University Enrollment Required

Future Students benefit from value packed videos and tutorials.

Enroll to receive exclusive content or sign in if you’re already a Future Student.

Enroll me for $15/mo

Explore the Library

Find interesting tutorials and solutions for your problems.