TeamTasewa's Expense Tracker - Version 2
Version 2
This is version 2 of our project, and we'll be diving deep into the working of our expense tracker.In our application, we will be importing the SQLite3 module. To connect the application to the SQLite database from the application, we need to call the Database() function of the SQLite3 module. The sqlite3.Database() will return a Database object and will open the database connection automatically.
When a user opens the web app, the first thing that they will see is the Welcome Page. Here, users have an option to either login using an existing account or sign up.
New users fill in the given form, click the “Sign-Up” button and are taken to the Dashboard. The details provided will be stored in the database using an insert statement.
Existing users enter their credentials which are read using the inbuilt getReadableDatabase() function and are verified with the data in the database using the string match() method. If correct, the user is redirected to the Dashboard.
In the Dashboard, the user has the option to access any of the following modules which deal with a specific function:
User Profile: This module will redirect the user to a separate page where he/she can view and update details such as account name or password. In case of any updation, the Update statement will be executed and the updated details will be displayed in the user interface.
Income: In this module, users can add and update their income. This income is added into the database using an insert statement and will be displayed in the UI using a retrieve function. With a simple update button, users can update their income when necessary.
Expense List: With a simple pen icon, the user will be redirected to another page where the user can add the expense name and amount. The save button will allow the user to save the expense he/she entered while the delete button will help in deleting a particular expense. To edit an expense, the user can click on that particular expense, edit and save the changes made.
Balance: Here, the user can check his/her balance by clicking on the View Balance” button - after clicking, the income and expense values will be fetched from the database using the get() function. These values are stored in the income and expense variables respectively and are displayed. To get the balance, the income will be subtracted from the expense and the resulting value will be displayed.
Graphs: This feature gives a better understanding of expenses spent by the user. For a particular time period, the user can view a graph representing their expenses of that specific time frame. The data is collected from the database and is represented in the form of a pie-chart for better understanding.
Also, we plan on making our application mobile friendly using “Ionic”.
Ionic is a powerful HTML5 SDK that helps you build native-feeling mobile apps using web technologies like HTML, CSS, and Javascript. Ionic is focused mainly on the look and feel, and UI interaction of your app.
Stay tuned for future versions!
Comments
Post a Comment