atomb0mb / legendary-recipe

CRUD project in Angular.
https://lengendaryrecipe.web.app
Creative Commons Zero v1.0 Universal
0 stars 0 forks source link
angular crud-application typescript

legendary-recipe

An Angular application that allow the users to manage their recipe and shopping list.

demo: https://lengendaryrecipe.web.app

Technology

Project Description

As a cooking lover, I always want to manage my recipe like BigOven. I want to start from a small step. So I used the opportunity of learning Angular to create this simple recipe book application. So far, I can log in and manage and view my recipe. Whenever I decide which recipe to make on that day, I refer to the ingredients from my recipe and add them to the shopping list tab as my grocery list!

Overview

Security

Use case 1 - Create an account or Login with an exisiting accont

Use the sample account for testing or Create a new account id: test@hotmail.com pass: 332211 To Create a new account

  1. Enter a valid email
  2. Enter a password that its length must greater than 6
  3. Click > Sign up

Use case 2 - Login and retrieve the recipe

  1. Enter your Email and Password then clicks > Login.
  2. After login, you will redirect to the recipe page. The recipe page is empty.
  3. On the top right, click > Manage > Fetch Data
  4. After fetching the data, you will see the recipes.

Use case 3 - Add a new recipe

  1. On the recipe page, click > New Recipe
  2. On the right, Enter the following fields: name, image URL, and description. Ingredient is optional.
  3. Once you are done, click > Save.
  4. The new recipe will show up on the list.

Use case 4 - To save your recipe to the database

Pre: Use case 3

  1. On the top right, click > Manage > Save Data

Use case 5 - To delete your recipe and update the database

  1. Select a recipe from your list.
  2. Click > Manage Recipe > Delete recipe
  3. On the top right, click > Manage > Save Data

Use case 6 - To edit your recipe and update the database

  1. Select a recipe from your list.
  2. Click > Manage Recipe > Edit recipe
  3. On the top right, click > Manage > Save Data

Use case 7 - To add ingredient to the shopping list via selected recipe

  1. Select a recipe from your list.
  2. Click > Manage Recipe > To Shopping List

Use case 8 - To view your shopping list

  1. Click > Shopping List tab

Use case 9 - To add ingredient on your shopping list at Shopping List tab

  1. Enter the name field and amount field
  2. Click > Add

Use case 10 - To edit ingredient on your shopping list at Shopping List tab

  1. Select the ingredient from the list
  2. Edit the name field and/or amount field
  3. Click > Update

Use case 11 - To delete ingredient on your shopping list at Shopping List tab

  1. Select the ingredient from the list
  2. Click > Delete

For reuse the code

Pre: Be Familiar with angular CLI and FireBase

  1. npm install
  2. Please include your fireBaseAPIKey in project > src > environments > environments.ts & environment.prod.ts
  3. Please replace your firebase realtime database Http request in src > app > auth > auth.service.ts