/BlazorRecipeApp

A simple Recipe App made using C# (Blazor WebAssembly Framework)

Primary LanguageHTML

Blazor Banner

Blazor Web Assembly Project - Recipe App

This project is a web-based application for creating, editing, and storing recipes. The app is built using Blazor Web Assembly, a framework for building client-side web applications with .NET and C#. With this app, users can easily add new recipes, edit existing ones, and view a list of all their recipes in one convenient location.

Objectives

The main objectives of this project are:

  1. To provide a user-friendly web application for managing and organizing recipes.
  2. To utilize the capabilities of Blazor Web Assembly and C# to build a responsive and interactive app.
  3. To create a platform for storing and accessing recipes from any device with an internet connection.

Progression

Day 1: the following progress was made on the recipe app:

  • The "add recipe", "edit recipe", and "list of recipe" pages were implemented and added to the navbar

Day 1

Day 2: further development was completed on the "add recipe" page, which now includes a form with fields for the name of the recipe, ingredients, and time needed to complete the recipe, as well as an "add recipe" button. A screenshot of this page can be seen below:

Day 2

Day 3: the data is now stored in the LocalStorage. When submitting the recipe, the data is stored in an array. So when we refresh the page, the data will be visible. The data are no longer volatile.

Day 3

Day 4: the recipes can now be displayed in the "Add Recipe" navbar. It can also be edited and deleted dynamically thanks to the method DeleteRecipeAsync.

Day 4

Day 5: The design of the app has been reworked. The library Blazorise has been used to get a better design of the app with more functionnality.

Here is the result:

Day 5

Day 6:

  • A REST API has been built using Node JS and Express.
  • The information in the API can be used to display recipe images, ingredient lists, and preparation instructions, etc - API Github link here
  • The API has been deployed using Vercel - Link here
  • Trying now to GET the data from this API and display all the recipes

Day 6

Day 7:

  • The data from the API has been successfully called
  • Each item from the API is now displayed in the home menu
  • The next day will be the adding of a Search Bar to dynamically search for recipes

Day 7

Day 8 - Final project:

  • A search bar has been added
  • The user can now dynamically search for a recipe using the search bar
  • The search text works both in lower case and upper case
  • An error alert has also been added in the "Add a Recipe" tab when a user try to add a recipe filling out all the fields

Here is a quick video to get a preview of the final project:

2023-02-14.13-33-11_Trim.1.mp4

Prerequisites

Before you can run the recipe app, you need to install the following tools:

Installation

  1. Clone the GitHub repository:
git clone https://github.com/your-username/MonProjetBlazor.git
  1. Open the project in Visual Studio Code or your preferred code editor.

  2. In the terminal, navigate to the project folder and run the following command to install dependencies:

dotnet restore
  1. Then, run the following command to start the application:
dotnet run
  1. Open a web browser and go to the address http://localhost:5000 to access the app.