Lesson 1 - Bring in Data
This tutorial takes you through the process of connecting a datasource and querying data on Appsmith.
Connect datasource
-
In your application, go to the sidebar and click the Data button.
-
Click the + icon next to Datasources in your workspace to add a new datasource.
-
Select PostgreSQL under the Databases section. This opens the page where you can configure the fields to connect to your PostgreSQL database.
-
Rename the default database name from Untitled datasource 1 to
usersTutorialDB
. You may have to click the pencil icon next to the database name if it is not already selected. -
Enter the following details in the connection parameter fields:
Host Address:mockdb.internal.appsmith.com
Port:5432
Database Name:users
Username:users
Password:new-users-db-pass
-
Click the Test Configuration button to test the connection and ensure the database is valid.
-
Click Save to create and save the database connection. You'll see the
usersTutorialDB
database page.