Giter VIP home page Giter VIP logo

mindful-app's Introduction

Mindful

This app can be viewed live @ https://mindful-murex.vercel.app/

Be Intentional About Your Mental Health!

Learn About Yourself and Your Daily Habits

Improve Your Mental Health and Create New Habits That Help You Feel Your Best

Record Daily Activities & Medicine

Log your food, sleep, medicine and other common factors known to effect your mood.

Rate Yourself

At the end of each day, rate your energy level, happiness, & focus to calculate your mood score for the day.

Track Your Mental Health

As you add new entries each day, your days with the highest mood score will be displayed so you can identify which habits impact your mood the most.

Journaling

Journaling has been shown to have a positive effect on overall mental health. Use the journal section to record your thoughts and just vent.

Demo Account

Username: Test1
Password: 12345


Dashboard Home Journal


API Documentation:

GET /api/activity

Retrieves all of the user's daily activity logs. Returns a response like the following:


    "id": 16,
    "date": "2020-12-13T16:59:21.141Z",
    "medicine": "tylenol",
    "hours_slept": 3
    "food": "waffles",
    "sugar_intake": 3,
    "rate_focus": 5,
    "rate_happiness": 2,
    "rate_energy": 4,
    "user_id": 3

POST /api/activity

In order to post successfully, a user must be logged in. This POST method will retrieve your user information and authentication status before attempting to post. See the example below:


[

  method: "POST",
  headers: { "content-type": "application/json", token: `${token}` },
  body: { 
    "medicine": "tylenol",
    "hours_slept": 3
    "food": "waffles",
    "sugar_intake": 3,
    "rate_focus": 5,
    "rate_happiness": 2,
    "rate_energy": 4,
   }

]



Technology info:

Backend:

  • Node for interacting with the file system
  • Express for handling API requests
  • Knex.js for interacting with the PostgreSQL database
  • Postgrator for database migration
  • Mocha, Chai, Supertest for testing
  • JSON Web Token and bcryptjs for user authentication / authorization

Front End:

  • React
  • HTML5
  • CSS3
  • Jest/Enzyme

mindful-app's People

Contributors

apullenb avatar

Watchers

 avatar

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.