Skip to main content
Recipes are the core of Sazón Comunitario. Every signed-in user can publish their own recipes, browse what the community has shared, and manage their posts at any time.

What a recipe contains

Each recipe has the following fields:
FieldDescriptionLimit
tituloThe name of the dish60 characters max
descripcionA short summary of the recipe300 characters max
tiempoPreparation time (free text, e.g. "45 min")
dificultadDifficulty level: Fácil, Media, or Difícil
ingredientesOrdered list of ingredientsAt least 1 required
pasosOrdered list of preparation stepsAt least 1 required
imagen_urlURL to the recipe photoOptional
ocultaVisibility flag — hidden recipes are not shown publiclySet by admins

Browsing recipes on the home page

The home page (/home) shows all public recipes sorted by most recent first. Recipes are displayed as cards showing the dish photo, title, description preview, difficulty badge, and preparation time. Results are paginated at 16 recipes per page. Use the Anterior and Siguiente buttons at the bottom of the page to move between pages.
Only recipes where oculta is false appear in the public listing. Hidden recipes are not visible to regular users.

Uploading a recipe

Navigate to /subirReceta to share a new recipe. You must be signed in to access this page.
1

Add a photo (optional)

Click the file input under Imagen de la receta and select an image from your device. Supported formats are any common image type (JPEG, PNG, WebP, etc.). If you skip this step, a placeholder image is shown on the recipe card.
2

Fill in the basic details

Enter the following fields:
  • Nombre del plato — the name of your recipe (max 60 characters)
  • Tiempo de preparación — how long it takes to prepare (e.g. 30 min, 1 hora)
  • Descripción — a brief description of the dish (max 300 characters)
  • Dificultad — select Fácil, Media, or Difícil from the dropdown
3

Add ingredients

Each ingredient goes on its own line. Click Añadir ingrediente to add a new entry. Remove an entry with the button next to it. At least one ingredient is required.
4

Add preparation steps

Each step is numbered automatically. Click Añadir paso to append a new step. Remove a step with the button next to it. At least one step is required.
5

Save the recipe

Click Guardar Receta. If validation passes, you are redirected to the home page where your new recipe appears at the top of the list.

Validation rules

The form will not submit if any of the following rules are violated:
  • Nombre del plato, Descripción, and Tiempo de preparación cannot be blank or contain only spaces.
  • Nombre del plato must not exceed 60 characters.
  • Descripción must not exceed 300 characters.
  • At least one ingredient and one preparation step must be provided (empty entries are ignored).

Recipe detail view

Click any recipe card to open the detail page at /receta/[id]. The detail page shows:
  • The recipe photo
  • Ingredient list
  • Difficulty and preparation time
  • Author avatar and name (clicking the author navigates to their profile)
  • Description
  • Numbered preparation steps
If you are the recipe’s author, Editar receta and Eliminar receta buttons appear below the photo.

Editing a recipe

Click Editar receta on the detail page. The same form used during upload appears pre-filled with the current values. All fields and validation rules are identical to the upload flow. You can also replace the existing photo by selecting a new image file. Click Guardar cambios to save, or Cancelar to discard.

Deleting a recipe

Click Eliminar receta on the detail page. A confirmation dialog appears before the recipe is permanently removed. After deletion you are redirected to /home.

Recipe visibility

Every recipe is either public or hidden (oculta):

Public

The recipe appears in the home page feed, in search results, and on the author’s recipe list. This is the default state when a recipe is first uploaded.

Hidden

The recipe is removed from all public listings. Users cannot discover it through browsing or search. The detail page remains accessible if you have the direct URL.

Admin visibility controls

Administrators can toggle the visibility of any recipe that is not their own. On the detail page, admins see an Ocultar receta button (or Mostrar receta if the recipe is already hidden). Toggling visibility takes effect immediately.
Only admins can change the oculta flag. The recipe author cannot hide or unhide their own recipe — they can only edit or delete it.

Build docs developers (and LLMs) love