VOOZH about

URL: https://www.geeksforgeeks.org/reactjs/build-a-recipe-manager-using-nextjs/

⇱ Build a Recipe Manager Using Next.js - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Build a Recipe Manager Using Next.js

Last Updated : 23 Jul, 2025

A Recipe Manager is a web application that allows users to manage and share their recipes. This application enables users to add new recipes, view a list of recipes, manage recipe and search for recipes by title. Built with Next.js, this app leverages server-side rendering for better performance. Users can interact with the app through a responsive user interface, making it easy to manage recipes from any device.

Output Preview: Let us have a look at how the final output will look like.

👁 recipe

Prerequisites:

Approach to Build a Recipe Manager Using Next.js:

  • Set Up Your Next.js Project
  • For state management we will use the built-in React hooks and Next.js features.
  • Create Navbar.js Navigation bar for the application.
  • Create Home page to display the list of recipes.
  • Create RecipeCard.js which displays individual recipe cards.
  • Create add-recipe.js which will have Form to add a new recipe.
  • Create manage-recipe.js to update or delete the recipe details.
  • We will use Tailwind CSS classes for responsive and modern design.
  • We will save and retrieve recipes data from localStorage.

Steps to Create a Recipe Manager Using Next.js:

Step 1: Initialized the Nextjs app

npx create-next-app@latest recipe-manager

Step 2: It will ask you some questions, so choose as the following bolded option.

√ Would you like to use TypeScript? ... No / Yes
√ Would you like to use ESLint? ... No / Yes
√ Would you like to use Tailwind CSS? ... No / Yes
√ Would you like to use `src/` directory? ... No / Yes
√ Would you like to use App Router? (recommended) ... No / Yes
√ Would you like to customize the default import alias (@/*)? ... No / Yes

Step 3: Create folder structure as shown below.

Project Structure:

👁 struct

The dependencies in package.json file will look like:

"dependencies": {
"react": "^18",
"react-dom": "^18",
"next": "14.2.5"
},
"devDependencies": {
"postcss": "^8",
"tailwindcss": "^3.4.1"
}

Example: Create the required files and write the following code.

To start the application run the following command.

npm run dev

Output

Comment