This tutorial will show you how to create an employee directory application in minutes using ToolJet. This app will let you track and update employee information with a beautiful user interface. Here are the step-by-step instructions:
**[1. Create Your First Application](#1-create-your-first-application)** <br/>
**[2. Create a Database Table](#2-create-a-database-table)** <br/>
**[3. Fetch Data](#3-fetch-data)** <br/>
**[4. Bind Data to the Table](#4-bind-data-to-the-table)** <br/>
- Go to the dashboard and click on the **Create new app** button. Name your application as "Employee Directory". Once your application is created, you can see an empty canvas.
- Click and drag a **[Table](/docs/widgets/table)** component on the canvas.
Optionally, you can also create a header by placing **[Text](/docs/widgets/text)** components over a **[Container](/docs/widgets/container)** component and styling them.
- Name the table employees and add the following columns: `firstname`, `lastname`, `email`, `phone`, `department`, `position`, `joining`, and `status`.
- Add a few employee records in the table as dummy data.
In the bottom-right corner of the Table component, there is a `+` (Add new row) button that opens a form to add new data to the Table. Follow the steps below to create an `addEmployee` query and execute it when you click the **Save** button on the add new rows form.
The `addEmployees` query should run when you click on the **Save** button on the `+` (Add new row) form. And the Table component should reload and display updated data each time a new employee is added. Follow the below steps to use events to setup this functionality.
- Under the `addEmployee` query settings, Scroll down and click on **New event handler**.
- Select **Query Success** as the Event, **Run Query** as the Action, and `getEmployees` as the Query.
- Click on the Table component, go to Events in properties panel and add a **New event handler**.
- Choose **Add new rows** as the Event, **Run Query** as the Action, and `addEmployee` as the Query.
Now when you click the `+` (Add new row) button, enter the employee data, and click **Save**, the `addEmployee` query will execute, adding the data to the `employees` table in the ToolJet Database. This will be followed by the Table component reloading with the new data.
The preview, release and share buttons are at the top-right of the App-Builder.
<divstyle={{textAlign:'center'}}>
<imgstyle={{marginBottom:'15px'}}className="screenshot-full"src="/img/quickstart-guide/preview-share-v2.png"alt="Preview And Share"/>
</div>
- Click on the **Preview** button on the top-right of app builder to review how your application is coming along during development.
- Once the development is done and you are ready to use the application, click on the **Release** button to deploy the app.
- Finally, share your application with your end users using the **Share** button.
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](/docs/tooljet-concepts/what-are-components)**.