4.1) App Screen 1 “AddExpense” for Expense Tracker

Hasura Expense Tracker
2 min readAug 3, 2017

--

Welcome back readers, we are starting the actual development of our Expense Tracker application. We are going to develop the easiest screen first, which is the “AddExpense” screen.

At this screen, the user has to fill a form that consists of various fields. These fields are:

  1. Expense Name
  2. Expense Amount
  3. Date and Time of Expense
  4. Expense Category
  5. Expense Note
  6. Expense Tags

Let us look at how the screen looks during various scenarios:

  1. Blank Form:
Blank AddExpense form

2. Entering values into the form:

Filled AddExpense form

In the AddExpense form, we have filled the values for purchase of Skullcandy earphones.

3. Successful form submission:

AddExpense form submission

On pressing the save button, the Data APIs of Hasura are called and the insert query is made to the PostgreSQL database. After successful execution of the insert query, a toast message is displayed indicating that the expense is successfully stored in the database.

4. Inserted record in database:

Inserted record in database

The data received from the AddExpense form is inserted into the database as shown.

Link to app after screen 1: https://goo.gl/3MvQYZ

In the next blogpost, we will learn how to retrieve this data and display it in a list format.

-Vinit Neogi and Akash Dabhi

--

--

Hasura Expense Tracker

Two tech geeks embarking on a journey to create their first android app for their Hasura Internship program. IT dept, St. Francis Institute of Technology.