This repository contains practical, working code examples referenced in my blog posts at https://medium.com/@johnryancottam. Each project demonstrates real-world implementations of popular web development technologies and patterns.
Location: cypress-io-react/
Blog Post: Testing React Applications with Cypress
Tech Stack: React 18, Cypress, Axios
A demonstration of end-to-end testing in React applications using Cypress. This project showcases how to set up Cypress testing in a modern React application with practical test examples.
Quick Start:
cd cypress-io-react
npm install
npm start # Run the React app
npm run cypress:open # Open Cypress test runnerLocation: image-uploading-with-node-and-cloudinary/
Blog Post: Image Uploading with Node & Cloudinary
Tech Stack: Node.js, Express, Multer, Cloudinary
A complete implementation of image upload functionality using Node.js/Express and Cloudinary cloud storage. Demonstrates file handling with Multer and integration with Cloudinary's API.
Quick Start:
cd image-uploading-with-node-and-cloudinary
npm install
npm run dev # Run with nodemon for auto-reloadLocation: nuxt-with-express/
Blog Post: Running Nuxt in Parallel with Express
Tech Stack: Nuxt.js 2, Express, Vue.js
Learn how to run Nuxt.js alongside a custom Express server, allowing you to add custom server-side logic while maintaining Nuxt's powerful features. Perfect for applications that need custom API endpoints or middleware.
Quick Start:
cd nuxt-with-express
npm install # or yarn install
npm run dev # Starts both Nuxt and Express in development modeBefore running any of the projects, ensure you have:
- Node.js (v16 or higher recommended)
- npm or yarn package manager
- Git (for cloning the repository)
For specific projects, you may also need:
- Cloudinary account (for image-uploading-with-node-and-cloudinary)
- Modern web browser (for Cypress testing)
-
Clone the repository:
git clone https://github.com/yourusername/blog-code-examples.git cd blog-code-examples -
Navigate to any project directory and install dependencies:
cd <project-directory> npm install
-
Follow the project-specific README for additional setup (if available)
All projects were recently updated (January 2026) with major dependency upgrades for security and performance. Key updates include:
- React 18 with new concurrent features
- Cloudinary v2 API with improved functionality
- Latest Express versions with security patches
- Modern ESLint & Prettier configurations
Contributions are welcome! If you find bugs, have suggestions, or want to improve the examples:
- Fork the repository
- Create a feature branch (
git checkout -b feature/improvement) - Commit your changes (
git commit -am 'Add improvement') - Push to the branch (
git push origin feature/improvement) - Open a Pull Request
These code examples are provided for educational purposes. Feel free to use them in your own projects.
- Blog: https://medium.com/@johnryancottam
- Issues: GitHub Issues
Happy coding! 🎉