It's time to learn about APIs and proxies. This is my repo.
- Initially I was using node-fetch for async data calls. I moved to Axios once I started mocking API calls in test. I’m sure there is a way to resolve the Jest - TypeError: response.json is not a function error, but in the interest of time, I pivoted. Switching to Axios allows me to mock API calls quickly, and reason about my data.
Articles that have helped fill in knowledge gaps.
- How to Use Fetch with async/await
- Get Query Strings and Parameters in Express.js
- The only 3 steps you need to mock an API call in Jest
- How to avoid exposing your API key in your public front-end apps
- Using dotenv package to create environment variables
- How to Prevent Cross-Site Scripting in Node.js
- express-validator
- CHEATSHEET: 10 best practices to containerize Node.js web applications with Docker
- 10 best practices to containerize Node.js web applications with Docker
- 10 Docker Security Best Practices
- How to Build a Secure Server with Node.js and Express and Upload Images with Cloudinary
Because sometimes, things just go wrong.