Getting Started
To create a new course, navigate to your instructor dashboard and click the “Crea tu curso” (Create your course) button.You must be logged in as an instructor to access the course creation form.
Course Creation Process
Access the Course Form
From your instructor dashboard at
/instructor/{your-id}, click the “Crea tu curso” button to navigate to the course creation form.Fill in Course Details
Complete all required fields in the course creation form. See the Required Fields section below for detailed information.
Upload Course Image
Select an image file for your course thumbnail. The image will be uploaded to Firebase Storage under
courses/{course-name}/.Required Fields
All fields marked below are required to successfully create a course.Course Title
- Field name:
title - Type: Text input
- Max length: 70 characters
- Validation:
- Required field
- Minimum 3 characters
Description
- Field name:
description - Type: Textarea
- Max length: 90 characters
- Validation:
- Required field
- Minimum 20 characters
- Maximum 90 characters
Category
- Field name:
category - Type: Select dropdown
- Options: Dynamically loaded from available categories
- Validation: Required field
localStorage.getItem("categoriesData").
Sections
- Field name:
sections - Type: Number input
- Min value: 1
- Validation:
- Required field
- Must be at least 1
Sections help organize your course content. Each section can contain multiple lectures. Plan your course structure before setting the number of sections.
Course Image
- Field name:
image - Type: File input
- Storage: Firebase Storage at
courses/{course-title}/{filename} - Format: Image files (JPG, PNG, etc.)
Price
- Field name:
price - Type: Number input
- Default: $1.00
- Min: $1.00
- Max: $9,999.99
- Step: 0.01 (supports cents)
Course Creation Logic
When you submit the course form, the following process occurs:Image Upload
The course image is uploaded to Firebase Storage and a download URL is generated.Reference:
~/workspace/source/src/views/Form/Form.jsx:44-54Validation
Form data is validated against the rules defined in
utils/validation.js.Reference: ~/workspace/source/src/utils/validation.js:1-37API Request
A POST request is sent to Reference:
/courses/create with the course data:~/workspace/source/src/views/Form/Form.jsx:80-83Common Validation Errors
Title is too short
Title is too short
Error: “Debe tener al menos 3 caracteres.”Solution: Ensure your course title is at least 3 characters long. A descriptive title helps students find your course.
Description length issues
Description length issues
Error: “La descripción debe tener al menos 20 caracteres.” or “La descripción debe tener menos de 80 caracteres.”Solution: Your description must be between 20 and 90 characters. Provide enough detail to interest students while staying within the limit.
No category selected
No category selected
Error: “Debe ingresar una categoría relacionada con el curso.”Solution: Select a category from the dropdown that best matches your course content.
Sections not set
Sections not set
Error: “el curso debe por lo menos tener una sección” or “el campo de sección no puede estar vacio”Solution: Enter at least 1 section. Sections help organize your course lectures into logical groups.
Invalid price
Invalid price
Error: “Debe ser superior a US$ 0,50.”Solution: Set a price of at least $1.00. Consider the value you’re providing and competitive pricing in your category.
Success Confirmation
When your course is successfully created, you’ll see a confirmation dialog:- Title: “Tu curso se creo correctamente!”
- Message: “Dirígete a la sección de cursos, ahí podrás encontrarlo.”
- Action: Redirects to
/courses
~/workspace/source/src/views/Form/Form.jsx:88-96
Next Steps
After creating your course:- Add Lectures: Navigate to your instructor dashboard and click “Crea clases” to add video lectures to your course
- Edit Course Details: Use the “Editar curso” button to modify course information
- Set Discounts: Optionally add promotional discounts to attract more students
Related Documentation
Learn how to add and organize lectures in your course