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

Project details routing, controller (Backend) task #597

Open
wants to merge 1 commit into
base: development
Choose a base branch
from

Conversation

Aishwaryak01
Copy link
Contributor

In this PR, backend files are created for the Project details controller, router, and route for Phase 2

Description

Project details routing, controller (Backend) task
This is a new feature for Phase 2, wherein a controller, a model file, router file are created so that the frontend ProjectDetails are fetched and shown correctly from the backend, MongoDB collection.

Related PRS (if any):

NA

Main changes explained:

Created a model file projectDetail.js to handle the schema for projectDetail collection.
Created a controller file bmProjectDetailController.js to control the function.
Create a router file bmProjectDetailRouter.js to route the passed argument of a model object from routes to the controller.
Updated route.js file.

How to test:

  1. check into current branch
  2. do npm install and ... to run this PR locally
  3. log as admin user
  4. go to http://localhost:3000/bmdashboard/projects/
  5. Select the project and check if the correct details are fetched in the background.

Screenshots or videos of changes:

Capture 5

Note:

Do not review this PR as it is raised without a frontend PR only for team member's purposes.

In this PR , backend files are created for Project details controller, router and route for Phase 2
@tdkent tdkent added Do Not Review Do not review or look at code without full context DO NOT MERGE Don't merge PR labels Nov 6, 2023
@tdkent tdkent changed the title Project details routing, controller (Backend) task <DO NOT REVIEW> Project details routing, controller (Backend) task Nov 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DO NOT MERGE Don't merge PR Do Not Review Do not review or look at code without full context
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants