This app can be viewed live @ https://mindful-murex.vercel.app/
Log your food, sleep, medicine and other common factors known to effect your mood.
At the end of each day, rate your energy level, happiness, & focus to calculate your mood score for the day.
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 has been shown to have a positive effect on overall mental health. Use the journal section to record your thoughts and just vent.
Username: Test1
Password: 12345
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
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,
}
]
- 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
- React
- HTML5
- CSS3
- Jest/Enzyme