Appendix E. Setting Up Developer Accounts and API Credentials
Many of the projects in this book rely on external services like OpenAI, Google Cloud, GitHub, and MongoDB Atlas. To use these services in your own development environment, you’ll need to create accounts, generate API keys or tokens, and configure your applications to use them securely.
This appendix walks you through the full process—from signing up and locating credentials to storing them safely in environment files and understanding rate limits. Along the way, you’ll learn the difference between API keys and OAuth tokens, how to avoid exposing sensitive data, and how service quotas might affect your apps.
These tools are essential in modern Node development, and setting them up early will help avoid roadblocks as you follow along. The sections below are organized in the order each service is used in the book, so you can reference them as needed during the relevant chapters. But first, let’s cover the basics of working with API keys and tokens.
Working with API Keys
Modern development frequently involves integrating with third-party services—such as databases, payment providers, AI models, or mapping platforms—via APIs (Application Programming Interfaces). To securely interact with these services, you typically need to create an account and authenticate your requests using API tokens.
An API token is a unique string of characters that acts like a password for programmatic access. When your application sends requests ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access