CS3219-AY2425S1 / cs3219-ay2425s1-project-g20

nus-cs3219-ay2425s1-cs3219-ay2425s1-project-project-template created by GitHub Classroom
MIT License
2 stars 1 forks source link

Implement CRUD for frontend #15

Closed ys112 closed 2 weeks ago

ys112 commented 3 weeks ago
ys112 commented 2 weeks ago

Could you move QuestionComponent and questions.module.css to components folder instead? I think routes should contain code for route and (maybe) data fetching only. Having css files under routes is not good for organising.

I suggest that we can organise the components folder either by functionality (a component is a Form/Modal or a whole page) or by business domain (a component is for Question-related routes or User routes). It might look like this:

└── src/
    └── components/
        ├── Pages/
        │   └── Question/
        │       └── QuestionListPage.tsx
        ├── Modal/
        │   └── ModalView.tsx
        ├── NumberedPageList.tsx
        └── Form/
            └── Question/
                └── QuestionForm.tsx

Code is now organised using business domain.