Categories
API Essentials

How to use fetch to POST form data as JSON to your API

4 min read

Categories
Express Node.js

5 best practices for building a modern API with Express

4 min read Jump links Enable the full use of promises and async / await 2. Validate request data with JSON Schema 3. Use an existing format for error responses 4. Send CORS response headers so web pages can call your API 5. Separate your concerns

Categories
Node.js

What is a good directory structure for a monorepo with a Node.js back end and React front end?

3 min read

Categories
Express Node.js

How can I handle common checks across different endpoints in an Express application?

3 min read