Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
cc28e90
Added signup
Feb 12, 2022
ea4599e
Test Hello World
Feb 13, 2022
65f2df7
Test hello
YovinduB25 Feb 14, 2022
d346d9b
Merge remote-tracking branch 'origin/back-end' into back-end
YovinduB25 Feb 14, 2022
1bf2969
Added new files
YovinduB25 Feb 14, 2022
aa494a6
test
YovinduB25 Feb 18, 2022
afa3e60
test-test-mathu
Mathushaan26 Feb 18, 2022
ad674ca
Files Updated
Feb 18, 2022
25a985b
Front end add file from ds
YovinduB25 Feb 18, 2022
459f354
test1 front end
YovinduB25 Feb 18, 2022
8ba2552
added front end
YasiiiDias Feb 19, 2022
bc41875
YasiiiDias Feb 19, 2022
dfc2f05
Learnality Logo
VipuV Feb 19, 2022
78db400
Start of flask
Feb 20, 2022
f391ff6
Setup React
Feb 21, 2022
3f9a01f
YasiiiDias Feb 22, 2022
738a8fc
.gitignore
Feb 22, 2022
aeb8178
newly updated front end
YasiiiDias Feb 23, 2022
55230a8
Merge remote-tracking branch 'origin/front-end' into front-end
YasiiiDias Feb 23, 2022
9f033d4
Figma Export
VipuV Mar 7, 2022
74be5dc
updated front end with home page
YasiiiDias Mar 15, 2022
b442a95
Merge remote-tracking branch 'origin/front-end' into front-end
YasiiiDias Mar 15, 2022
4143506
updated front end
YasiiiDias Mar 16, 2022
e04c86a
Connected the database to nodejs and created CRU
Mar 16, 2022
f62f339
CRUD application working with database
Mar 17, 2022
dca007b
Questionnaire pages
Mathushaan26 Mar 17, 2022
0934801
Updated front end with quiz pages
YasiiiDias Mar 18, 2022
3969c98
Updated front end with few pages
YasiiiDias Mar 19, 2022
7c30775
Fixed errors where page didn't work
Mar 20, 2022
65448de
Files Updated and Coding done in app.py
Mar 21, 2022
d3dc3e8
Updated the backend files
Mar 30, 2022
33dcd65
Completed front end
YasiiiDias Apr 1, 2022
224a366
Merge remote-tracking branch 'origin/front-end' into front-end
YasiiiDias Apr 1, 2022
cbb0e58
Updated front end with connection to backend
Apr 1, 2022
74f7a5a
frontend fix
YasiiiDias Apr 1, 2022
5675094
updated live endpoint
YasiiiDias Apr 1, 2022
d3ae896
Changed dir name
YasiiiDias Apr 1, 2022
05e44fa
connected front end with back end
YasiiiDias Apr 8, 2022
122a081
Front End Changes
Apr 8, 2022
a5f05be
package.json updates
Apr 8, 2022
e45fb91
bug fix
Apr 8, 2022
004ef5a
Updated Back End
Apr 8, 2022
ffe740a
Front end changes
Apr 9, 2022
01589f8
Front end update
Apr 10, 2022
0a5df14
Back End update on server port
Apr 10, 2022
141d0bb
Front end updated
Apr 15, 2022
98f131b
Fixed bug
YasiiiDias Apr 15, 2022
bee0c26
Added all cors
YasiiiDias Apr 15, 2022
eb5117d
Frontend fixes
YasiiiDias Apr 15, 2022
d7cbc7e
Merge branch 'front-end' into back-end
YasiiiDias Apr 15, 2022
5dea7a8
Bug fixes
YasiiiDias Apr 15, 2022
b6d907b
Fixed bug in user persona
YasiiiDias Apr 20, 2022
b66a04f
Fixed bug in dashboard api
YasiiiDias Apr 20, 2022
f9a53c7
Updated backend files
Apr 23, 2022
93bec37
Front end updated
Apr 24, 2022
d880f41
Backend updated
Apr 24, 2022
dfc6ee3
Merge remote-tracking branch 'origin/back-end' into back-end
Apr 26, 2022
c04be51
Backend Files Updated
Apr 30, 2022
380e6c3
Added Comments
May 1, 2022
e260419
Added package json
May 1, 2022
d4c8d8f
Finalized Everything
May 1, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions back-end/final-be/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# production
/build

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
3 changes: 3 additions & 0 deletions back-end/final-be/app/config/db.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
url: "mongodb+srv://admin:N7qOG68k01sI3oh3@cluster0.uriqb.mongodb.net/DigitalPhoenix?retryWrites=true&w=majority"
};
23 changes: 23 additions & 0 deletions back-end/final-be/app/controllers/question.controller.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
const StoreAnswers = require("../models/question.model");
const User = require("../models/user.model");

exports.store = (req, res) => {
var newRequest = new StoreAnswers();
newRequest.userId = req.body.userId;
newRequest.answers = req.body.answers;
newRequest.is_learning = req.body.is_learning;
newRequest.save()
.then((result) => {
User.findById(newRequest.userId, (err, user) => {
if (user) {
// The below two lines will add the newly saved answer request
user.answers.push(newRequest);
user.save();
res.json({ message: 'Answer stored!' });
}
});
})
.catch((error) => {
res.status(500).json({ error });
});
};
Loading