08-16-2024
Meeting
Sharing:
- Validator
- Validator is a middleware that validates the request body, query, and params.
- I have created a validator in
src/validatorslogic, which contains the reusable validator functions. Those functions can be used in combination to make a validationMiddleware for your features
- Auth Middleware
- I set the basic auth middleware in
src/middlewares/authlogic, which contains testing data for each of our request(find the first user), after Daniel finishes the token management, we can replace the testing data with the real token.
- I set the basic auth middleware in
- Routes
- Please put your routes in the
src/routeslogic, and import them in thesrc/routes/apiRouter.jsfile.
- Please put your routes in the
- Rebase before PR
- Every one should rebase before PR, and make sure the code is up to date with the main branch.
- Use different data base
- All of us should use different database, so we can test our feature without affecting others. I have created the different database for each of us, just need to replace the
MONGODB_URLin the.envfile. And replace:onboarding-portalafter themongodb.net/to your name. For example,MONGODB_URI=mongodb+srv://<username>:<password>@main-cluster.xfcw7.mongodb.net/liam?. And the database name option should be: liamfor Liamyuqingfor Yuqingnicolasfor Nicolasbaoshufor Baoshudanielfor Daniel
- All of us should use different database, so we can test our feature without affecting others. I have created the different database for each of us, just need to replace the
- data seeding
- I have created the data seed script in
src/scriptsfolder, and created the command inpackage.jsonfile. You can run the seed script bynpm run seedcommand. Or you can runnpm run seedUsersornpm run seedPersonalInformationto seed the user or personal information data separately. - Please created and submit the data seed script for your feature, so we can test the feature with the real data.
- I have created the data seed script in
Others:
-
Solve the Github issue
-
Distribute the HR tickets
-
Discuss about the frontend standard
Daily Plan
Liam
- Finish the React Layouts, including the navigation logic and check for code splitting
- Finish the Personal Information React Page
- Start working on employee summary - HR page
Yuqing Yang
- Finish saving file path to MongoDB
- Implement file displaying on page
Nicolas
- finish the housing backend
- facility report backend
Baoshu
- finish the backend logic of onboarding application
- And finish the dynamic form for frontend
Daniel
- Work on token management with cookies.
- Implement double token authentication.
Progress
Liam
- Onboarding Application Model, Personal Information Model and Visa Management Docs Model
- Personal Information controllers and bunch of validators, and Validation Middlewares
- Finished the Personal Information API, run the basic test on postman
- write data seeding script for user, personal information
- 20% of React Layouts, including the styling and theme setting for MUI
Yuqing Yang
- Almost done the file uploading
- Almost done the page redirection
- Setup for AWS S3
Nicolas
- working on housing/ facility report
Baoshu
Find out the way to handle dynamic form
Daniel
Implemented basic registration and login functionality with data verification.