Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backend #37

Open
wants to merge 5 commits into
base: backend
Choose a base branch
from
Open

Backend #37

wants to merge 5 commits into from

Conversation

KreenaShah
Copy link
Collaborator

No description provided.

Copy link
Collaborator

@codingmickey codingmickey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-work on these changes

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

First of all, delete all these images from "Filesss" and whenever committing always ignore the test files/folders

//Testing Route
router.get('/', (req, res) => {
console.log('Project Route');
res.send('Project Route');
});

router.post("/add", addProject);
router.post('/add', upload.single('file'), addProject);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just check whatever changes I told to @Smit-Dama on #33 and update accordingly!


const gradeSchema = new mongoose.Schema(
{
sem1: {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add userId as a reference to the User model so that we can map the user with the grades

},
sem8_pdf: {
type: String
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, why store the grades like this?

I would suggest making a grade array and then inside that array storing the objects of grade which include

  • semester
  • grade/pointer
  • subject (for future if needed to store the details of each subject in the semester)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Modify this file according to the new Grades model

@codingmickey
Copy link
Collaborator

@KreenaShah resolve merge conflicts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants