Next.js Image Gallery

With Tailwind CSS, TypeScript & Zod

In this series, we’ll build a searchable Next.js Image Gallery with the Next.js App Directory, Tailwind CSS, TypeScript and Zod.

Next.js Image Gallery

Lesson Help

If you get stuck on any lesson in the series, (1) navigate to the course branch for your current lesson and (2) view or (3) download the code for more help.

Preview of downloading code in github

Prerequisites

In this series, I’ll assume you know the fundamentals of Next.js, TypeScript, and Tailwind CSS. If you need help, see the Net Ninja’s introductory series on each of those topics.

πŸ’» You will need:

  • Node.js (npm / npx)
  • Next.js
  • Pexels API Key

πŸš€ Create .env.local file

Create a .env.local file to store your API key. Example below:

PEXELS_API_KEY=your-API-key-value

Project Setup

npm install

Compile and Hot-Reload for Development

npm run dev

Compile and Minify for Production

npm run build

πŸ“š References


Author Links

πŸ‘‹ Hello, I'm Dave Gray.

πŸ‘‰ My Courses

βœ… Check out my YouTube Channel with hundreds of tutorials.

🚩 Subscribe to my channel

β˜• Buy Me A Coffee

πŸš€ Follow Me:


πŸŽ“ Academic Honesty

DO NOT COPY FOR AN ASSIGNMENT - Avoid plagiarism and adhere to the spirit of this Academic Honesty Policy.