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

Ft/23 link backend frontend #24

Open
wants to merge 58 commits into
base: develop
Choose a base branch
from

Conversation

tanerochris
Copy link
Contributor

Description

Merged all existing PRs
#20 #16 #22

How Has This Been Tested?

No test is written for the front end , just backend API endpoints.

Screenshots (if applicable, else remove this line / section)

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added necessary inline code documentation
  • I have added tests that prove my fix is effective and that this feature works
  • [x ] New and existing unit tests pass locally with my changes

mernxl and others added 30 commits May 9, 2020 17:23
- set content type for catchall error response
- workaround for JS Object destructuring inside an if block considered error by codacity
- Updated readme file
- Added schemas and model related to project feature
- Created an all model file to import into database ,prevents previous error from mongoose "cannot overrite model already compiled"
- Added ApiErrorResponse class to manage api errors
- Wrote tests for Project feature endpoints
- Updated setupTests.js with code to run before and after test suits run
- rename auth directory to user to match docs api endpoints

close #14
- Updated readme file
- Added schemas and model related to project feature
- Created an all model file to import into database ,prevents previous error from mongoose "cannot overrite model already compiled"
- Added ApiErrorResponse class to manage api errors
- Wrote tests for Project feature endpoints
- Updated setupTests.js with code to run before and after test suits run
- rename auth directory to user to match docs api endpoints

close #14
- Updated readme file
- Added schemas and model related to project feature
- Created an all model file to import into database ,prevents previous error from mongoose "cannot overrite model already compiled"
- Added ApiErrorResponse class to manage api errors
- Wrote tests for Project feature endpoints
- Updated setupTests.js with code to run before and after test suits run
- rename auth directory to user to match docs api endpoints

close #14
- added jest options --forceExit --detectOpenHandles --maxWorkers=10 to exit jest when all test pass

close #14
- documented project api endpoints
- refactored project structure, renamed folders and moved files raised in #16
- added prettier configuration

partially resolve #14 reviews
- documented project api endpoints
- refactored project structure, renamed folders and moved files raised in #16
- added prettier configuration

partially resolve #14 reviews
- documented project api endpoints
- refactored project structure, renamed folders and moved files raised in #16
- added prettier configuration

partially resolve #14 reviews
OpenAPI 3.0 design
Yaml and JSON files

closes #6
Added instructions to run API endpoint documentation
Added link to external docs

close
mernxl and others added 15 commits May 20, 2020 22:54
- create, view, list and delete project
- added app.js file to extend nextjs
- refactored model imports to commonjs
- added prop-types

closes #15
- create, view, list and delete project
- added app.js file to extend nextjs
- refactored model imports to commonjs
- added prop-types

closes #15
- create, view, list and delete project
- added app.js file to extend nextjs
- refactored model imports to commonjs
- added prop-types

closes #15
- create, view, list and delete project
- added app.js file to extend nextjs
- refactored model imports to commonjs
- added prop-types

closes #15
merged the different PRs

closes #23
merged the different PRs

closes #23
merged the different PRs

closes #23
@mernxl
Copy link
Contributor

mernxl commented Jun 7, 2020

Hey @tanerochris, I noticed you are using

// in /api/user/login.js 
...
const User = mongoose.model('User');
...

// use User to do operations

Within the api routes without strictly importing all the models on the path to the said route. this isn't too good as you may request a model which is not already registered, so explicitly requesting a model from the file will be better.

KaiserPhemi
KaiserPhemi previously approved these changes Jun 12, 2020
@tanerochris
Copy link
Contributor Author

tanerochris commented Jun 13, 2020 via email

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.

4 participants