Skip to content

Commit 88171ca

Browse files
committed
redis-implemented
1 parent f6185c4 commit 88171ca

File tree

15 files changed

+220
-24
lines changed

15 files changed

+220
-24
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,14 @@ jobs:
3939
uses: ncipollo/release-action@v1
4040
with:
4141
artifacts: "build/app/outputs/apk/release/*"
42-
tag: v2.0.7
42+
tag: v2.0.8
4343
token: ${{ secrets.TOKEN }}
44-
name: "stable-v2.0.7"
44+
name: "stable-v2.0.8"
4545
body: |
46-
## What's New in v2.0.7
46+
## What's New in v2.0.8
4747
48+
- **Added Redis-base to support syncfusion**
4849
- **Fixed Performance and Responsiveness Issues and Improved UI.
4950
- **New Feature**: Implemented Syncfusion.
50-
- **Bug Fixes**: Resolved major bugs pertaining to syncfusion.
51-
- **Performance Improvements**: Optimized the UI load response time.
52-
- **UI Enhancements**: Improved the home UI.
5351
5452
### Known Issues are Resolved.

README.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
![Mindful-App](https://socialify.git.ci/ARYPROGRAMMER/Mindful-App/image?description=1&descriptionEditable=Mindful%20is%20a%20mental%20wellness%20app%20designed%20to%20support%20users%20in%20managing%20stress%20and%20anxiety&font=Source%20Code%20Pro&language=1&name=1&owner=1&pattern=Diagonal%20Stripes&stargazers=1&theme=Dark)
22

33
[![Build Status](https://github.com/travisjeffery/timecop/workflows/CI/badge.svg)](https://github.com/ARYPROGRAMMER/Mindful-App/actions)
4-
![version](https://img.shields.io/badge/version-2.0.7-blue)
4+
![version](https://img.shields.io/badge/version-2.0.8-red)
55

66
<p align="center">
77
<img src="https://img.shields.io/badge/firebase-ffca28?style=for-the-badge&logo=firebase&logoColor=black"/>
@@ -12,15 +12,13 @@
1212

1313
**APP STATUS** : ALL CORE FUNCTIONALITIES WORKING (Deployed NodeJs & Postgresql on Render)
1414

15-
## What's New in v2.0.7
15+
## What's New in v2.0.8
1616

17+
- **Added Redis-base to support syncfusion**
1718
- **Fixed Performance and Responsiveness Issues and Improved UI.
1819
- **New Feature**: Implemented Syncfusion.
19-
- **Bug Fixes**: Resolved major bugs pertaining to syncfusion.
20-
- **Performance Improvements**: Optimized the UI load response time.
21-
- **UI Enhancements**: Improved the home UI.
22-
23-
### Known Issues are Resolved.
20+
21+
### Known Issues are Resolved.
2422

2523
[DEMO LINK OF WORKING](https://vimeo.com/1016496824?share=copy)
2624

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
1616
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
1717
# In Windows, build-name is used as the major, minor, and patch parts
1818
# of the product and file versions while build-number is used as the build suffix.
19-
version: 2.0.7
19+
version: 2.0.8
2020

2121
environment:
2222
sdk: ^3.5.3

server/Mental Health api/adapters/controllers/MeditationController.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class MeditationController{
2626
const quotesRepository = new GeminiApi();
2727

2828
const getAdviceByMood = new GetAdviceByMood(quotesRepository);
29-
const advice = await getAdviceByMood.execute();
29+
const advice = await getAdviceByMood.execute(mood);
3030
return res.json(advice);
3131

3232
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
const fetchmoodData = require("../../application/usecases/getmoodData");
2+
class UserController{
3+
4+
static async usernames(req,res){
5+
try{
6+
const { username }= req.params;
7+
const moodData = new fetchmoodData();
8+
const moodata = await moodData.execute(username);
9+
10+
return res.json(moodata);
11+
}
12+
13+
catch(err){
14+
res.status(500).json({error: err.message});
15+
}
16+
}
17+
}
18+
19+
module.exports = UserController;

server/Mental Health api/adapters/routes/songRoutes.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
const Song = require('../../domain/entities/song');
21
const SongController = require('../controllers/SongController');
32

43
const router = require('express').Router();
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
const UserController = require('../../adapters/controllers/userController');
2+
3+
const router = require('express').Router();
4+
5+
router.get('/:username',UserController.usernames);
6+
7+
module.exports = router;
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
const UserName = require("../../domain/entities/user");
2+
const { mooddatainfo } = require("../../infrastructure/db-fast/queries/userQueries");
3+
const UseCaseInt = require("../interfaces/UseCaseInt");
4+
5+
class MoodData extends UseCaseInt{
6+
7+
async execute(username) {
8+
9+
const moodData = await mooddatainfo(username);
10+
return moodData;
11+
// return moodData.map((data) => new UserName (
12+
// {
13+
// happy: data.happy,
14+
// sad: data.sad,
15+
// neutral: data.neutral,
16+
// calm: data.calm,
17+
// relax: data.relax,
18+
// focus: data.focus,
19+
20+
// }));
21+
}
22+
}
23+
24+
module.exports = MoodData;

server/Mental Health api/application/usecases/getsongs.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// fetch all songs from the database
2-
//get daily quotes -> call gemini -> {morning,noon,evening}
3-
//provide advice
41

52
const Song = require("../../domain/entities/song");
63
const { getAllSongs } = require("../../infrastructure/db/queries/songQueries");
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
class UserName{
2+
constructor(happy,sad,neutral,calm,relax,focus){
3+
4+
this.happy = happy;
5+
this.sad = sad;
6+
this.neutral = neutral;
7+
this.calm = calm;
8+
this.relax = relax;
9+
this.focus = focus;
10+
11+
}
12+
}
13+
14+
module.exports = UserName;

0 commit comments

Comments
 (0)