Giter VIP home page Giter VIP logo

motiv8's Introduction

Motiv8

Motiv8 is an application that wants to help keep you on track to complete your tasks/goals through periodically giving you inspiring quotes! Utilize the task list to help you keep track of your tasks and how important they are!

Overview

Adding a Task

Users can Navigate to the Tasks Tab and Create a new Task using the Floating Action Button. Once save is clicked, the Task is saved locally to Sqlite Database. This database is then used to populate the Task Fragment when there are items within.

*A title, description, and priority is required for every task.

Viewing Your Tasks


The tasks are retrieved from the Database using Room and are then populated into the Task Fragment using a RecyclerView.

Timer

Once the "Start Timer" Button is hit, the counter will begin to count down. Use this screen when you're ready to start an activity. There is no stop timer button, so once you start, you have to finish (Unless a new time is selected on the clock)

Services

The Service and Broadcast Receiver are used in conjunction with each other to provide the user with quotes at their desired frequency. Once the "Start Timer" button has been hit, The Service is then started. This service then starts the Broadcast Receiver. The Broadcast Receiver is responsible for pushing notifications.

Settings

The Settings Activity allows users to change their preferences of their desired type of quote as well as quote frequency. The Retrofit API call is based on the category value, while the AlarmReceiver repeating frequency is set by the frequency.

Notification Example

Structure

Activities

  1. Main Activity
    1. Timer Fragment
    2. Task Fragment
  2. Settings Activity
  3. Add Task Activity

Services

  1. NotificationService
  2. AlarmReceiver

Other Components/Libraries

  1. Room (Content Provider)
  2. Retrofit
  3. Picasso
  4. Butterknife for View Binding

Architecture

Motiv8 utilizes the MVVM architecture to assist with the seperation of class responsibilities.

Model

The data is represented by two classes, Task and Quote. A Task repository was created to hold the database operations for Adding, Deleting, & Updating. The fields for each are as follows

Task

  • ID (For room)
  • Title
  • Description
  • Priority
  • Time

Quote

Modeled after data retrieved from Inspirational Quotes API

Fields

  • Author
  • Title
  • Link to Quote (Loaded with Picasso)

ViewModel

The TaskViewModel calls the associated database operation from the Task Repository based on user interaction

View

The Timer Fragment receives the List of tasks from the ViewModel and populates the RecyclerView. The View allows users to Add, Delete, or Update their tasks. Once one of these actions is taken, the associated operation is called in the ViewModel.

The inspiration for this project mostly stems from my own journey and struggles with time management as well as keeping myself motivated. I believe anything is within the realm of reach, we just need some motivation to get there. Hopefully this can serve as just that! Enjoy :), feedback is welcomed!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.