Working with ValorIDE
Now that you understand ThorAPI and OpenAPI specs, let's explore ValorIDE - your AI coding buddy!
What Makes ValorIDE Special?β
ValorIDE isn't like traditional code editors where you have to type everything yourself. Instead:
- You talk to ValorIDE in plain English
- It understands what you want to build
- It writes the code for you
- It explains what it did and why
This approach is called "agentic coding" - where an AI agent does the coding work for you!
Getting Started with ValorIDEβ
When you open ValorIDE, you'll see:
- A chat window where you talk to ValorIDE
- A file explorer showing all your project files
- A code editor where ValorIDE makes changes
- A preview area to see your app running
How to Talk to ValorIDEβ
ValorIDE understands normal, everyday language. Here are some examples of things you can ask:
Creating New Featuresβ
Fixing Problemsβ
Making Improvementsβ
Understanding How ValorIDE Worksβ
When you ask ValorIDE to do something:
- It analyzes your request to understand what you want
- It examines the current code to see what's already there
- It identifies which files need to be modified
- It writes or updates the necessary code
- It explains what changes it made
ValorIDE knows about the components ThorAPI generated, so it can use them to build exactly what you need!
Working with ThorAPI-Generated Componentsβ
When ThorAPI generates your application, it creates reusable components that ValorIDE can work with:
Data Modelsβ
ValorIDE knows about all the objects in your spec (like Products, Users, Orders). You can simply say things like:
Show a list of all products from the database on the homepage
API Servicesβ
ValorIDE knows how to use the API endpoints ThorAPI created:
When a user clicks "Add to Cart", add the product to their cart in the database
UI Componentsβ
ValorIDE can use and customize the UI components ThorAPI generated:
Create a product detail page using the ProductDetailView component
Step-by-Step Example: Building a Featureβ
Let's see an example of working with ValorIDE to build a shopping cart feature:
Step 1: Ask ValorIDE to Create the Cart Pageβ
You:
Create a shopping cart page that shows all items in the user's cart,
with the ability to change quantities and remove items.
ValorIDE will:
- Create a new CartPage.tsx file
- Import the necessary components
- Set up the page structure
- Add functionality to display, update, and remove cart items
Step 2: Ask ValorIDE to Add a Checkout Buttonβ
You:
Add a checkout button to the cart page that calculates the total price
and asks for shipping information.
ValorIDE will:
- Add a checkout button
- Create a form for shipping information
- Add code to calculate the total price
Step 3: Ask ValorIDE to Fix Any Issuesβ
You:
The total price calculation isn't including the tax.
Can you add 8% tax to the total?
ValorIDE will update the calculation code to include tax.
Best Practices for Working with ValorIDEβ
To get the most out of ValorIDE:
- Start with clear goals: Know what you want to build before asking
- Be specific but not technical: Describe what you want, not how to code it
- Break big tasks into smaller steps: Ask for one feature at a time
- Provide feedback: If something isn't quite right, explain what you'd like changed
- Learn from explanations: ValorIDE will explain what it did, helping you learn
What If ValorIDE Gets Confused?β
If ValorIDE doesn't understand what you want:
- Try rephrasing: Explain what you want in different words
- Be more specific: Give more details about what you're trying to achieve
- Ask for help: Say "I want to create X, can you help me figure out how?"
- Break it down: Split your request into smaller, simpler parts
Beyond the Basics: Advanced ValorIDE Featuresβ
As you get more comfortable, you can use ValorIDE for more advanced tasks:
- Integrating third-party services: "Add Stripe payment processing to the checkout page"
- Creating custom animations: "Make products fade in when the page loads"
- Optimizing performance: "The product page loads slowly. Can you make it faster?"
- Adding complex features: "Add a recommendation system that suggests products based on what's in the cart"
Next Stepsβ
Now that you understand how to work with ValorIDE, you're ready to build amazing applications! Here are some next steps:
Remember: The power of ValkyrAI comes from combining ThorAPI's automatic code generation with ValorIDE's ability to understand and build exactly what you want. Happy building!