recipe-crud-app-assessment

Recipe CRUD App

This project is a simple recipe-tracking app that allows users to add, view, and delete recipes. It is built using React and styled according to the provided mockup. The app manages the state for the list of recipes and uses various React components to organize the structure and functionality.

Technologies Used

Features

External Libraries

Setup

Prerequisites

Ensure you have Node.js version 18 installed before running the app. You can check your Node version using the following command:

node -v

If you need to switch to Node version 18, use:

nvm use v18

Installation

  1. Clone the repository to your local machine.
  2. Navigate to the project directory.
  3. Install the dependencies:
    npm install
    

    Running the App

    To start the development server:

    npm start
    

    The app will be available at http://localhost:3000.

Functionality

Creating a Recipe

To create a recipe, fill out the form fields:

Creating Recipe Screenshot

Displaying the Recipes

The recipes are displayed in a table format:

Displaying Recipe Screenshot

Deleting a Recipe

Each recipe row includes a “Delete” button. Clicking the button removes the recipe from the list.

Styling

The app’s styles are defined in App.css. Key points include:

Project Structure