docs/versioned_docs/version-2.50.0-LTS/getting-started/quickstart-guide.md
This quickstart guide walks you through the process of creating an employee directory app using ToolJet. The application lets users track and update employee details while working with core features of the platform, all within a user-friendly interface. Here are the step-by-step instructions:
1. Create Your First Application
3. Create a Query to Fetch Data
4. Bind Queried Data to the UI
6. Use Events to Trigger Queries
<div style={{paddingTop:'24px', paddingBottom:'24px'}}> <!-- </div> -->To begin, create a free ToolJet account and follow the steps below.
<div class="video-container"> <iframe width="560" height="315" src="https://www.youtube.com/embed/Cdi9XW-0rkA?si=ue3XS5986NZiaoLC&rel=0" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe> </div>Now, create a new table in ToolJet’s Database to store employee records.
<div class="video-container"> <iframe width="560" height="315" src="https://www.youtube.com/embed/GKOZsWcOxgI?si=qXGYetr1u9KLdl1Z&rel=0" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe> </div>To display employees in the application, you will first have to fetch the data from the database using a query.
<div class="video-container"> <iframe width="560" height="315" src="https://www.youtube.com/embed/cE_hGYDeb_s?si=W_zB3iJn9qBf-AU5&rel=0" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe> </div>Now, you need to bind the data returned by the getEmployees query with the Table created in the first step.
<div class="video-container"> <iframe width="560" height="315" src="https://www.youtube.com/embed/nh-LgW4uhWU?si=ZL_X5tKB3O6oU2ct&rel=0" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe> </div>{{queries.getEmployees.data}}
Now the Table component is filled with the data returned by the getEmployees query.
</div> <div style={{paddingTop:'24px', paddingBottom:'24px'}}>In the bottom-right corner of the Table component, there is a +(Add new row) button that opens an auto-generated form to add new data to the Table. Follow the steps below to create an addEmployees query and execute it when you click the Save button on the auto-generated form.
<div class="video-container"> <iframe width="560" height="315" src="https://www.youtube.com/embed/xOihuO1w6Oc?si=CiHstXOao6hQlVtC&rel=0" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe> </div>{{components.table1.newRows[0].email}}
{{components.table1.newRows[0].firstname}}
...
Frame all the remaining keys in the same format.
</div> <div style={{paddingTop:'24px', paddingBottom:'24px'}}>The addEmployees query should run when you click the Save button on the auto-generated form. The Table component should then reload and display the updated data whenever a new employee is added. Follow the steps below to set up this functionality using events.
<div class="video-container"> <iframe width="560" height="315" src="https://www.youtube.com/embed/ceMHaJeXASY?si=YC7jOJm5sJSa1p4K&rel=0" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe> </div>Now, when you click the + (Add new row) button on the Table component, enter the employee details, and click Save, the data will be added to the database and automatically reflected in the Table component on the UI.
</div> <div style={{paddingTop:'24px', paddingBottom:'24px'}}>The preview, release and share buttons are at the top-right of the App-Builder.
<div style={{textAlign: 'center'}}> </div>Congratulations on completing the tutorial! You've successfully built an employee directory application and, in the process, learnt the fundamentals of ToolJet.
To learn more about how ToolJet works, explore the subjects covered in ToolJet Concepts.
</div>