- 
                Notifications
    
You must be signed in to change notification settings  - Fork 4
 
Dev #2
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
          
     Merged
      
      
    
                
     Merged
            
            Dev #2
Conversation
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
    Project setup
Schema migration task in progress
Manage auth + middleware + roles guard
Univ check express API starter
Express API Starter
API Starter with auth
    
  tiger-githubb 
      added a commit
      that referenced
      this pull request
    
      Apr 2, 2025 
    
    
      
  
    
      
    
  
* Dev (#2) * Typescript api initialzed * Update README * Add license file * Task in progress * Project task completed * Task in progress * Auth management + basic seed task completed * Add middleware with roles guard * Update README file * Update tsconfig --------- Co-authored-by: mbradiouf14 <mbradiouf14@gmail.com> Co-authored-by: bradlab <37481556+bradlab@users.noreply.github.com> * Reproduced entities * improved package.json * just changed name for more flexibility * Fixed datasource to run migrations * Added services * Added class-validator and Dtos * Added controller * Added routes * Pushed router to index.ts * Added and tested seeder * Testing swagger integration --------- Co-authored-by: KARBOU Aristide <aristidetiger12@gmail.com> Co-authored-by: mbradiouf14 <mbradiouf14@gmail.com> Co-authored-by: bradlab <37481556+bradlab@users.noreply.github.com>
    
  tiger-githubb 
      added a commit
      that referenced
      this pull request
    
      Apr 3, 2025 
    
    
      
  
    
      
    
  
* Typescript api initialzed * Update README * Add license file * Task in progress * Project task completed * Task in progress * Auth management + basic seed task completed * Add middleware with roles guard * Update README file * Update tsconfig * Merging local devs to master (#4) * Dev (#2) * Typescript api initialzed * Update README * Add license file * Task in progress * Project task completed * Task in progress * Auth management + basic seed task completed * Add middleware with roles guard * Update README file * Update tsconfig --------- Co-authored-by: mbradiouf14 <mbradiouf14@gmail.com> Co-authored-by: bradlab <37481556+bradlab@users.noreply.github.com> * Reproduced entities * improved package.json * just changed name for more flexibility * Fixed datasource to run migrations * Added services * Added class-validator and Dtos * Added controller * Added routes * Pushed router to index.ts * Added and tested seeder * Testing swagger integration --------- Co-authored-by: KARBOU Aristide <aristidetiger12@gmail.com> Co-authored-by: mbradiouf14 <mbradiouf14@gmail.com> Co-authored-by: bradlab <37481556+bradlab@users.noreply.github.com> --------- Co-authored-by: mbradiouf14 <mbradiouf14@gmail.com> Co-authored-by: bradlab <37481556+bradlab@users.noreply.github.com> Co-authored-by: Jean-Gaël <61506484+Alwil17@users.noreply.github.com>
    
  Alwil17 
      added a commit
      that referenced
      this pull request
    
      Apr 6, 2025 
    
    
      
  
    
      
    
  
* Typescript api initialzed * Update README * Add license file * Task in progress * Project task completed * Task in progress * Auth management + basic seed task completed * Add middleware with roles guard * Update README file * Update tsconfig * Reproduced entities * improved package.json * just changed name for more flexibility * Fixed datasource to run migrations * Added services * Added class-validator and Dtos * Added controller * Added routes * Pushed router to index.ts * Added and tested seeder * Testing swagger integration * Merging local devs to master (#4) * Dev (#2) * Typescript api initialzed * Update README * Add license file * Task in progress * Project task completed * Task in progress * Auth management + basic seed task completed * Add middleware with roles guard * Update README file * Update tsconfig --------- Co-authored-by: mbradiouf14 <mbradiouf14@gmail.com> Co-authored-by: bradlab <37481556+bradlab@users.noreply.github.com> * Reproduced entities * improved package.json * just changed name for more flexibility * Fixed datasource to run migrations * Added services * Added class-validator and Dtos * Added controller * Added routes * Pushed router to index.ts * Added and tested seeder * Testing swagger integration --------- Co-authored-by: KARBOU Aristide <aristidetiger12@gmail.com> Co-authored-by: mbradiouf14 <mbradiouf14@gmail.com> Co-authored-by: bradlab <37481556+bradlab@users.noreply.github.com> * Reproduced entities * improved package.json * just changed name for more flexibility # Conflicts: # src/config/data-source.ts # src/controllers/auth.controller.ts # src/controllers/user.controllers.ts # src/dto/user.dto.ts # src/index.ts # src/middleware/authorization.ts # src/routes/user.routes.ts dd * Added services * Added class-validator and Dtos * Added controller * Added routes * Pushed router to index.ts * Added and tested seeder * Init * Merged completely with devmain * User entity rename file * User entity removed * Rename Subject to Course + Add auth and users swagger doc * Add swagger for all models and routes * Add DTO validator on Auth and User routes * Fixed env variables * Added vercel support * Mind delete yarn * Delete yarn.lock * Adapting ts * Testing in local * Fixed vercel.json * servless ready * Testing gpt fix * Desparate fix * Desparate fix * servless ready --------- Co-authored-by: mbradiouf14 <mbradiouf14@gmail.com> Co-authored-by: bradlab <37481556+bradlab@users.noreply.github.com> Co-authored-by: KARBOU Aristide <aristidetiger12@gmail.com>
    
  Alwil17 
      added a commit
      that referenced
      this pull request
    
      Apr 6, 2025 
    
    
      
  
    
      
    
  
* Typescript api initialzed * Update README * Add license file * Task in progress * Project task completed * Task in progress * Auth management + basic seed task completed * Add middleware with roles guard * Update README file * Update tsconfig * Reproduced entities * improved package.json * just changed name for more flexibility * Fixed datasource to run migrations * Added services * Added class-validator and Dtos * Added controller * Added routes * Pushed router to index.ts * Added and tested seeder * Testing swagger integration * Merging local devs to master (#4) * Dev (#2) * Typescript api initialzed * Update README * Add license file * Task in progress * Project task completed * Task in progress * Auth management + basic seed task completed * Add middleware with roles guard * Update README file * Update tsconfig --------- Co-authored-by: mbradiouf14 <mbradiouf14@gmail.com> Co-authored-by: bradlab <37481556+bradlab@users.noreply.github.com> * Reproduced entities * improved package.json * just changed name for more flexibility * Fixed datasource to run migrations * Added services * Added class-validator and Dtos * Added controller * Added routes * Pushed router to index.ts * Added and tested seeder * Testing swagger integration --------- Co-authored-by: KARBOU Aristide <aristidetiger12@gmail.com> Co-authored-by: mbradiouf14 <mbradiouf14@gmail.com> Co-authored-by: bradlab <37481556+bradlab@users.noreply.github.com> * Reproduced entities * improved package.json * just changed name for more flexibility # Conflicts: # src/config/data-source.ts # src/controllers/auth.controller.ts # src/controllers/user.controllers.ts # src/dto/user.dto.ts # src/index.ts # src/middleware/authorization.ts # src/routes/user.routes.ts dd * Added services * Added class-validator and Dtos * Added controller * Added routes * Pushed router to index.ts * Added and tested seeder * Init * Merged completely with devmain * User entity rename file * User entity removed * Rename Subject to Course + Add auth and users swagger doc * Add swagger for all models and routes * Add DTO validator on Auth and User routes * Fixed env variables * Added vercel support * Mind delete yarn * Delete yarn.lock * Adapting ts * Testing in local * Fixed vercel.json * servless ready * Testing gpt fix * Desparate fix * Desparate fix * servless ready --------- Co-authored-by: mbradiouf14 <mbradiouf14@gmail.com> Co-authored-by: bradlab <37481556+bradlab@users.noreply.github.com> Co-authored-by: KARBOU Aristide <aristidetiger12@gmail.com>
    
  Alwil17 
      added a commit
      that referenced
      this pull request
    
      Apr 6, 2025 
    
    
      
  
    
      
    
  
* Typescript api initialzed * Update README * Add license file * Task in progress * Project task completed * Task in progress * Auth management + basic seed task completed * Add middleware with roles guard * Update README file * Update tsconfig * Reproduced entities * improved package.json * just changed name for more flexibility * Fixed datasource to run migrations * Added services * Added class-validator and Dtos * Added controller * Added routes * Pushed router to index.ts * Added and tested seeder * Testing swagger integration * Merging local devs to master (#4) * Dev (#2) * Typescript api initialzed * Update README * Add license file * Task in progress * Project task completed * Task in progress * Auth management + basic seed task completed * Add middleware with roles guard * Update README file * Update tsconfig --------- Co-authored-by: mbradiouf14 <mbradiouf14@gmail.com> Co-authored-by: bradlab <37481556+bradlab@users.noreply.github.com> * Reproduced entities * improved package.json * just changed name for more flexibility * Fixed datasource to run migrations * Added services * Added class-validator and Dtos * Added controller * Added routes * Pushed router to index.ts * Added and tested seeder * Testing swagger integration --------- Co-authored-by: KARBOU Aristide <aristidetiger12@gmail.com> Co-authored-by: mbradiouf14 <mbradiouf14@gmail.com> Co-authored-by: bradlab <37481556+bradlab@users.noreply.github.com> * Reproduced entities * improved package.json * just changed name for more flexibility # Conflicts: # src/config/data-source.ts # src/controllers/auth.controller.ts # src/controllers/user.controllers.ts # src/dto/user.dto.ts # src/index.ts # src/middleware/authorization.ts # src/routes/user.routes.ts dd * Added services * Added class-validator and Dtos * Added controller * Added routes * Pushed router to index.ts * Added and tested seeder * Init * Merged completely with devmain * User entity rename file * User entity removed * Rename Subject to Course + Add auth and users swagger doc * Add swagger for all models and routes * Add DTO validator on Auth and User routes * Fixed env variables * Added vercel support * Mind delete yarn * Delete yarn.lock * Adapting ts * Testing in local * Fixed vercel.json * servless ready * Testing gpt fix * Desparate fix * Desparate fix * servless ready * servless ready --------- Co-authored-by: mbradiouf14 <mbradiouf14@gmail.com> Co-authored-by: bradlab <37481556+bradlab@users.noreply.github.com> Co-authored-by: KARBOU Aristide <aristidetiger12@gmail.com>
    
  Alwil17 
      added a commit
      that referenced
      this pull request
    
      Apr 6, 2025 
    
    
      
  
    
      
    
  
* Typescript api initialzed * Update README * Add license file * Task in progress * Project task completed * Task in progress * Auth management + basic seed task completed * Add middleware with roles guard * Update README file * Update tsconfig * Reproduced entities * improved package.json * just changed name for more flexibility * Fixed datasource to run migrations * Added services * Added class-validator and Dtos * Added controller * Added routes * Pushed router to index.ts * Added and tested seeder * Testing swagger integration * Merging local devs to master (#4) * Dev (#2) * Typescript api initialzed * Update README * Add license file * Task in progress * Project task completed * Task in progress * Auth management + basic seed task completed * Add middleware with roles guard * Update README file * Update tsconfig --------- Co-authored-by: mbradiouf14 <mbradiouf14@gmail.com> Co-authored-by: bradlab <37481556+bradlab@users.noreply.github.com> * Reproduced entities * improved package.json * just changed name for more flexibility * Fixed datasource to run migrations * Added services * Added class-validator and Dtos * Added controller * Added routes * Pushed router to index.ts * Added and tested seeder * Testing swagger integration --------- Co-authored-by: KARBOU Aristide <aristidetiger12@gmail.com> Co-authored-by: mbradiouf14 <mbradiouf14@gmail.com> Co-authored-by: bradlab <37481556+bradlab@users.noreply.github.com> * Reproduced entities * improved package.json * just changed name for more flexibility # Conflicts: # src/config/data-source.ts # src/controllers/auth.controller.ts # src/controllers/user.controllers.ts # src/dto/user.dto.ts # src/index.ts # src/middleware/authorization.ts # src/routes/user.routes.ts dd * Added services * Added class-validator and Dtos * Added controller * Added routes * Pushed router to index.ts * Added and tested seeder * Init * Merged completely with devmain * User entity rename file * User entity removed * Rename Subject to Course + Add auth and users swagger doc * Add swagger for all models and routes * Add DTO validator on Auth and User routes * Fixed env variables * Added vercel support * Mind delete yarn * Delete yarn.lock * Adapting ts * Testing in local * Fixed vercel.json * servless ready * Testing gpt fix * Desparate fix * Desparate fix * servless ready * servless ready * Fix all GPT mistakes --------- Co-authored-by: mbradiouf14 <mbradiouf14@gmail.com> Co-authored-by: bradlab <37481556+bradlab@users.noreply.github.com> Co-authored-by: KARBOU Aristide <aristidetiger12@gmail.com>
    
  Alwil17 
      added a commit
      that referenced
      this pull request
    
      Apr 6, 2025 
    
    
      
  
    
      
    
  
* Typescript api initialzed * Update README * Add license file * Task in progress * Project task completed * Task in progress * Auth management + basic seed task completed * Add middleware with roles guard * Update README file * Update tsconfig * Reproduced entities * improved package.json * just changed name for more flexibility * Fixed datasource to run migrations * Added services * Added class-validator and Dtos * Added controller * Added routes * Pushed router to index.ts * Added and tested seeder * Testing swagger integration * Merging local devs to master (#4) * Dev (#2) * Typescript api initialzed * Update README * Add license file * Task in progress * Project task completed * Task in progress * Auth management + basic seed task completed * Add middleware with roles guard * Update README file * Update tsconfig --------- Co-authored-by: mbradiouf14 <mbradiouf14@gmail.com> Co-authored-by: bradlab <37481556+bradlab@users.noreply.github.com> * Reproduced entities * improved package.json * just changed name for more flexibility * Fixed datasource to run migrations * Added services * Added class-validator and Dtos * Added controller * Added routes * Pushed router to index.ts * Added and tested seeder * Testing swagger integration --------- Co-authored-by: KARBOU Aristide <aristidetiger12@gmail.com> Co-authored-by: mbradiouf14 <mbradiouf14@gmail.com> Co-authored-by: bradlab <37481556+bradlab@users.noreply.github.com> * Reproduced entities * improved package.json * just changed name for more flexibility # Conflicts: # src/config/data-source.ts # src/controllers/auth.controller.ts # src/controllers/user.controllers.ts # src/dto/user.dto.ts # src/index.ts # src/middleware/authorization.ts # src/routes/user.routes.ts dd * Added services * Added class-validator and Dtos * Added controller * Added routes * Pushed router to index.ts * Added and tested seeder * Init * Merged completely with devmain * User entity rename file * User entity removed * Rename Subject to Course + Add auth and users swagger doc * Add swagger for all models and routes * Add DTO validator on Auth and User routes * Fixed env variables * Added vercel support * Mind delete yarn * Delete yarn.lock * Adapting ts * Testing in local * Fixed vercel.json * servless ready * Testing gpt fix * Desparate fix * Desparate fix * servless ready * servless ready * Fix all GPT mistakes * Update index.ts --------- Co-authored-by: mbradiouf14 <mbradiouf14@gmail.com> Co-authored-by: bradlab <37481556+bradlab@users.noreply.github.com> Co-authored-by: KARBOU Aristide <aristidetiger12@gmail.com>
    
  Alwil17 
      added a commit
      that referenced
      this pull request
    
      Apr 7, 2025 
    
    
      
  
    
      
    
  
* Typescript api initialzed * Update README * Add license file * Task in progress * Project task completed * Task in progress * Auth management + basic seed task completed * Add middleware with roles guard * Update README file * Update tsconfig * Reproduced entities * improved package.json * just changed name for more flexibility * Fixed datasource to run migrations * Added services * Added class-validator and Dtos * Added controller * Added routes * Pushed router to index.ts * Added and tested seeder * Testing swagger integration * Merging local devs to master (#4) * Dev (#2) * Typescript api initialzed * Update README * Add license file * Task in progress * Project task completed * Task in progress * Auth management + basic seed task completed * Add middleware with roles guard * Update README file * Update tsconfig --------- Co-authored-by: mbradiouf14 <mbradiouf14@gmail.com> Co-authored-by: bradlab <37481556+bradlab@users.noreply.github.com> * Reproduced entities * improved package.json * just changed name for more flexibility * Fixed datasource to run migrations * Added services * Added class-validator and Dtos * Added controller * Added routes * Pushed router to index.ts * Added and tested seeder * Testing swagger integration --------- Co-authored-by: KARBOU Aristide <aristidetiger12@gmail.com> Co-authored-by: mbradiouf14 <mbradiouf14@gmail.com> Co-authored-by: bradlab <37481556+bradlab@users.noreply.github.com> * Reproduced entities * improved package.json * just changed name for more flexibility # Conflicts: # src/config/data-source.ts # src/controllers/auth.controller.ts # src/controllers/user.controllers.ts # src/dto/user.dto.ts # src/index.ts # src/middleware/authorization.ts # src/routes/user.routes.ts dd * Added services * Added class-validator and Dtos * Added controller * Added routes * Pushed router to index.ts * Added and tested seeder * Init * Merged completely with devmain * User entity rename file * User entity removed * Rename Subject to Course + Add auth and users swagger doc * Add swagger for all models and routes * Add DTO validator on Auth and User routes * Fixed env variables * Added vercel support * Mind delete yarn * Delete yarn.lock * Adapting ts * Testing in local * Fixed vercel.json * servless ready * Testing gpt fix * Desparate fix * Desparate fix * servless ready * servless ready * Fix all GPT mistakes * Update index.ts * Added servless * Forced npm on vercel * Tested vercel dev and it's working * Tested vercel node * Tested vercel node * Tsting swaggr build * Tested vercel node * Tested vercel node * Tested vercel node * Trying to see doc * Try to bypass neon * another test --------- Co-authored-by: mbradiouf14 <mbradiouf14@gmail.com> Co-authored-by: bradlab <37481556+bradlab@users.noreply.github.com> Co-authored-by: KARBOU Aristide <aristidetiger12@gmail.com>
    
  Alwil17 
      added a commit
      that referenced
      this pull request
    
      Apr 7, 2025 
    
    
      
  
    
      
    
  
* Typescript api initialzed * Update README * Add license file * Task in progress * Project task completed * Task in progress * Auth management + basic seed task completed * Add middleware with roles guard * Update README file * Update tsconfig * Reproduced entities * improved package.json * just changed name for more flexibility * Fixed datasource to run migrations * Added services * Added class-validator and Dtos * Added controller * Added routes * Pushed router to index.ts * Added and tested seeder * Testing swagger integration * Merging local devs to master (#4) * Dev (#2) * Typescript api initialzed * Update README * Add license file * Task in progress * Project task completed * Task in progress * Auth management + basic seed task completed * Add middleware with roles guard * Update README file * Update tsconfig --------- Co-authored-by: mbradiouf14 <mbradiouf14@gmail.com> Co-authored-by: bradlab <37481556+bradlab@users.noreply.github.com> * Reproduced entities * improved package.json * just changed name for more flexibility * Fixed datasource to run migrations * Added services * Added class-validator and Dtos * Added controller * Added routes * Pushed router to index.ts * Added and tested seeder * Testing swagger integration --------- Co-authored-by: KARBOU Aristide <aristidetiger12@gmail.com> Co-authored-by: mbradiouf14 <mbradiouf14@gmail.com> Co-authored-by: bradlab <37481556+bradlab@users.noreply.github.com> * Reproduced entities * improved package.json * just changed name for more flexibility # Conflicts: # src/config/data-source.ts # src/controllers/auth.controller.ts # src/controllers/user.controllers.ts # src/dto/user.dto.ts # src/index.ts # src/middleware/authorization.ts # src/routes/user.routes.ts dd * Added services * Added class-validator and Dtos * Added controller * Added routes * Pushed router to index.ts * Added and tested seeder * Init * Merged completely with devmain * User entity rename file * User entity removed * Rename Subject to Course + Add auth and users swagger doc * Add swagger for all models and routes * Add DTO validator on Auth and User routes * Fixed env variables * Added vercel support * Mind delete yarn * Delete yarn.lock * Adapting ts * Testing in local * Fixed vercel.json * servless ready * Testing gpt fix * Desparate fix * Desparate fix * servless ready * servless ready * Fix all GPT mistakes * Update index.ts * Added servless * Forced npm on vercel * Tested vercel dev and it's working * Tested vercel node * Tested vercel node * Tsting swaggr build * Tested vercel node * Tested vercel node * Tested vercel node * Trying to see doc * Try to bypass neon * another test * still trying to swagger * testing with public --------- Co-authored-by: mbradiouf14 <mbradiouf14@gmail.com> Co-authored-by: bradlab <37481556+bradlab@users.noreply.github.com> Co-authored-by: KARBOU Aristide <aristidetiger12@gmail.com>
    
  Alwil17 
      added a commit
      that referenced
      this pull request
    
      May 9, 2025 
    
    
      
  
    
      
    
  
* Typescript api initialzed * Update README * Add license file * Task in progress * Project task completed * Task in progress * Auth management + basic seed task completed * Add middleware with roles guard * Update README file * Update tsconfig * Reproduced entities * improved package.json * just changed name for more flexibility * Fixed datasource to run migrations * Added services * Added class-validator and Dtos * Added controller * Added routes * Pushed router to index.ts * Added and tested seeder * Testing swagger integration * Merging local devs to master (#4) * Dev (#2) * Typescript api initialzed * Update README * Add license file * Task in progress * Project task completed * Task in progress * Auth management + basic seed task completed * Add middleware with roles guard * Update README file * Update tsconfig --------- Co-authored-by: mbradiouf14 <mbradiouf14@gmail.com> Co-authored-by: bradlab <37481556+bradlab@users.noreply.github.com> * Reproduced entities * improved package.json * just changed name for more flexibility * Fixed datasource to run migrations * Added services * Added class-validator and Dtos * Added controller * Added routes * Pushed router to index.ts * Added and tested seeder * Testing swagger integration --------- Co-authored-by: KARBOU Aristide <aristidetiger12@gmail.com> Co-authored-by: mbradiouf14 <mbradiouf14@gmail.com> Co-authored-by: bradlab <37481556+bradlab@users.noreply.github.com> * Reproduced entities * improved package.json * just changed name for more flexibility # Conflicts: # src/config/data-source.ts # src/controllers/auth.controller.ts # src/controllers/user.controllers.ts # src/dto/user.dto.ts # src/index.ts # src/middleware/authorization.ts # src/routes/user.routes.ts dd * Added services * Added class-validator and Dtos * Added controller * Added routes * Pushed router to index.ts * Added and tested seeder * Init * Merged completely with devmain * User entity rename file * User entity removed * Rename Subject to Course + Add auth and users swagger doc * Add swagger for all models and routes * Add DTO validator on Auth and User routes * Fixed env variables * Added vercel support * Mind delete yarn * Delete yarn.lock * Adapting ts * Testing in local * Fixed vercel.json * servless ready * Testing gpt fix * Desparate fix * Desparate fix * servless ready * servless ready * Fix all GPT mistakes * Update index.ts * Added servless * Forced npm on vercel * Tested vercel dev and it's working * Tested vercel node * Tested vercel node * Tsting swaggr build * Tested vercel node * Tested vercel node * Tested vercel node * Trying to see doc * Try to bypass neon * another test * still trying to swagger * testing with public * Fixed all bugs relationship * Fixed emargement service * Fixed organisation service * fixed program service * Fixed subject * Edited Update University * Edited update methods * Optimized imports * Rollback to online configs --------- Co-authored-by: mbradiouf14 <mbradiouf14@gmail.com> Co-authored-by: bradlab <37481556+bradlab@users.noreply.github.com> Co-authored-by: KARBOU Aristide <aristidetiger12@gmail.com>
    
  Alwil17 
      added a commit
      that referenced
      this pull request
    
      May 20, 2025 
    
    
      
  
    
      
    
  
* Typescript api initialzed * Update README * Add license file * Task in progress * Project task completed * Task in progress * Auth management + basic seed task completed * Add middleware with roles guard * Update README file * Update tsconfig * Reproduced entities * improved package.json * just changed name for more flexibility * Fixed datasource to run migrations * Added services * Added class-validator and Dtos * Added controller * Added routes * Pushed router to index.ts * Added and tested seeder * Testing swagger integration * Merging local devs to master (#4) * Dev (#2) * Typescript api initialzed * Update README * Add license file * Task in progress * Project task completed * Task in progress * Auth management + basic seed task completed * Add middleware with roles guard * Update README file * Update tsconfig --------- Co-authored-by: mbradiouf14 <mbradiouf14@gmail.com> Co-authored-by: bradlab <37481556+bradlab@users.noreply.github.com> * Reproduced entities * improved package.json * just changed name for more flexibility * Fixed datasource to run migrations * Added services * Added class-validator and Dtos * Added controller * Added routes * Pushed router to index.ts * Added and tested seeder * Testing swagger integration --------- Co-authored-by: KARBOU Aristide <aristidetiger12@gmail.com> Co-authored-by: mbradiouf14 <mbradiouf14@gmail.com> Co-authored-by: bradlab <37481556+bradlab@users.noreply.github.com> * Reproduced entities * improved package.json * just changed name for more flexibility # Conflicts: # src/config/data-source.ts # src/controllers/auth.controller.ts # src/controllers/user.controllers.ts # src/dto/user.dto.ts # src/index.ts # src/middleware/authorization.ts # src/routes/user.routes.ts dd * Added services * Added class-validator and Dtos * Added controller * Added routes * Pushed router to index.ts * Added and tested seeder * Init * Merged completely with devmain * User entity rename file * User entity removed * Rename Subject to Course + Add auth and users swagger doc * Add swagger for all models and routes * Add DTO validator on Auth and User routes * Fixed env variables * Added vercel support * Mind delete yarn * Delete yarn.lock * Adapting ts * Testing in local * Fixed vercel.json * servless ready * Testing gpt fix * Desparate fix * Desparate fix * servless ready * servless ready * Fix all GPT mistakes * Update index.ts * Added servless * Forced npm on vercel * Tested vercel dev and it's working * Tested vercel node * Tested vercel node * Tsting swaggr build * Tested vercel node * Tested vercel node * Tested vercel node * Trying to see doc * Try to bypass neon * another test * still trying to swagger * testing with public * Fixed all bugs relationship * Fixed emargement service * Fixed organisation service * fixed program service * Fixed subject * Edited Update University * Edited update methods * Optimized imports * Rollback to online configs * docs: add contributing guidelines to the project * Fix spelling errors in Swagger documentation for departments endpoint * feat: add endpoint to retrieve class sessions by teacher and period * refactor: remove unused imports from classSession.service.ts * feat: add endpoint and service method to retrieve emargements by teacher * feat: sort academic years by updated date in getAllAcademicYears method * feat: add ordering by updated date in getAllClassSessions and getClassSessionsByTeacherAndPeriod methods * feat: add ordering by updated date in getAllCourses method * feat: add ordering by updated date in getAllDepartements method * feat: add ordering by updated date in getAllEmargements and getEmargementsByTeacher methods * feat: add ordering by updated date in getAllOrganisations method * feat: add ordering by updated date in getAllProgrammes method * feat: add ordering by updated date in getAllUniversites method * feat: add ordering by updated date in getAllSubjects method * feat: add ordering parameter to getAllProgrammes method * feat: add ordering parameter to getAllOrganisations method * feat: add ordering parameter to getAllDepartements method * feat: add ordering parameter to getAllCourses method * feat: add ordering parameter to getAllUniversites and update getAllAcademicYears method * feat: add ordering parameter to getAllProgrammes method * feat: add ordering parameter to getAllOrganisations method * feat: add ordering parameter to getAllDepartements method * feat: add ordering parameter to getAllCourses method * feat: add ordering parameter to getAllAcademicYears method --------- Co-authored-by: mbradiouf14 <mbradiouf14@gmail.com> Co-authored-by: bradlab <37481556+bradlab@users.noreply.github.com> Co-authored-by: KARBOU Aristide <aristidetiger12@gmail.com>
    
  Alwil17 
      added a commit
      that referenced
      this pull request
    
      Jun 28, 2025 
    
    
      
  
    
      
    
  
* Typescript api initialzed * Update README * Add license file * Task in progress * Project task completed * Task in progress * Auth management + basic seed task completed * Add middleware with roles guard * Update README file * Update tsconfig * Reproduced entities * improved package.json * just changed name for more flexibility * Fixed datasource to run migrations * Added services * Added class-validator and Dtos * Added controller * Added routes * Pushed router to index.ts * Added and tested seeder * Testing swagger integration * Merging local devs to master (#4) * Dev (#2) * Typescript api initialzed * Update README * Add license file * Task in progress * Project task completed * Task in progress * Auth management + basic seed task completed * Add middleware with roles guard * Update README file * Update tsconfig --------- Co-authored-by: mbradiouf14 <mbradiouf14@gmail.com> Co-authored-by: bradlab <37481556+bradlab@users.noreply.github.com> * Reproduced entities * improved package.json * just changed name for more flexibility * Fixed datasource to run migrations * Added services * Added class-validator and Dtos * Added controller * Added routes * Pushed router to index.ts * Added and tested seeder * Testing swagger integration --------- Co-authored-by: KARBOU Aristide <aristidetiger12@gmail.com> Co-authored-by: mbradiouf14 <mbradiouf14@gmail.com> Co-authored-by: bradlab <37481556+bradlab@users.noreply.github.com> * Reproduced entities * improved package.json * just changed name for more flexibility # Conflicts: # src/config/data-source.ts # src/controllers/auth.controller.ts # src/controllers/user.controllers.ts # src/dto/user.dto.ts # src/index.ts # src/middleware/authorization.ts # src/routes/user.routes.ts dd * Added services * Added class-validator and Dtos * Added controller * Added routes * Pushed router to index.ts * Added and tested seeder * Init * Merged completely with devmain * User entity rename file * User entity removed * Rename Subject to Course + Add auth and users swagger doc * Add swagger for all models and routes * Add DTO validator on Auth and User routes * Fixed env variables * Added vercel support * Mind delete yarn * Delete yarn.lock * Adapting ts * Testing in local * Fixed vercel.json * servless ready * Testing gpt fix * Desparate fix * Desparate fix * servless ready * servless ready * Fix all GPT mistakes * Update index.ts * Added servless * Forced npm on vercel * Tested vercel dev and it's working * Tested vercel node * Tested vercel node * Tsting swaggr build * Tested vercel node * Tested vercel node * Tested vercel node * Trying to see doc * Try to bypass neon * another test * still trying to swagger * testing with public * Fixed all bugs relationship * Fixed emargement service * Fixed organisation service * fixed program service * Fixed subject * Edited Update University * Edited update methods * Optimized imports * Rollback to online configs * docs: add contributing guidelines to the project * Fix spelling errors in Swagger documentation for departments endpoint * feat: add endpoint to retrieve class sessions by teacher and period * refactor: remove unused imports from classSession.service.ts * feat: add endpoint and service method to retrieve emargements by teacher * feat: sort academic years by updated date in getAllAcademicYears method * feat: add ordering by updated date in getAllClassSessions and getClassSessionsByTeacherAndPeriod methods * feat: add ordering by updated date in getAllCourses method * feat: add ordering by updated date in getAllDepartements method * feat: add ordering by updated date in getAllEmargements and getEmargementsByTeacher methods * feat: add ordering by updated date in getAllOrganisations method * feat: add ordering by updated date in getAllProgrammes method * feat: add ordering by updated date in getAllUniversites method * feat: add ordering by updated date in getAllSubjects method * feat: add ordering parameter to getAllProgrammes method * feat: add ordering parameter to getAllOrganisations method * feat: add ordering parameter to getAllDepartements method * feat: add ordering parameter to getAllCourses method * feat: add ordering parameter to getAllUniversites and update getAllAcademicYears method * feat: add ordering parameter to getAllProgrammes method * feat: add ordering parameter to getAllOrganisations method * feat: add ordering parameter to getAllDepartements method * feat: add ordering parameter to getAllCourses method * feat: add ordering parameter to getAllAcademicYears method * feat: include programme relation in getCourseById and getAllCourses methods * refactor: remove programs relation from getDepartementById and getAllDepartements methods * refactor: remove courses relation from getProgrammeById and getAllProgrammes methods --------- Co-authored-by: mbradiouf14 <mbradiouf14@gmail.com> Co-authored-by: bradlab <37481556+bradlab@users.noreply.github.com> Co-authored-by: KARBOU Aristide <aristidetiger12@gmail.com>
    
  Alwil17 
      added a commit
      that referenced
      this pull request
    
      Jun 28, 2025 
    
    
      
  
    
      
    
  
* Typescript api initialzed * Update README * Add license file * Task in progress * Project task completed * Task in progress * Auth management + basic seed task completed * Add middleware with roles guard * Update README file * Update tsconfig * Reproduced entities * improved package.json * just changed name for more flexibility * Fixed datasource to run migrations * Added services * Added class-validator and Dtos * Added controller * Added routes * Pushed router to index.ts * Added and tested seeder * Testing swagger integration * Merging local devs to master (#4) * Dev (#2) * Typescript api initialzed * Update README * Add license file * Task in progress * Project task completed * Task in progress * Auth management + basic seed task completed * Add middleware with roles guard * Update README file * Update tsconfig --------- * Reproduced entities * improved package.json * just changed name for more flexibility * Fixed datasource to run migrations * Added services * Added class-validator and Dtos * Added controller * Added routes * Pushed router to index.ts * Added and tested seeder * Testing swagger integration --------- * Reproduced entities * improved package.json * just changed name for more flexibility # Conflicts: # src/config/data-source.ts # src/controllers/auth.controller.ts # src/controllers/user.controllers.ts # src/dto/user.dto.ts # src/index.ts # src/middleware/authorization.ts # src/routes/user.routes.ts dd * Added services * Added class-validator and Dtos * Added controller * Added routes * Pushed router to index.ts * Added and tested seeder * Init * Merged completely with devmain * User entity rename file * User entity removed * Rename Subject to Course + Add auth and users swagger doc * Add swagger for all models and routes * Add DTO validator on Auth and User routes * Fixed env variables * Added vercel support * Mind delete yarn * Delete yarn.lock * Adapting ts * Testing in local * Fixed vercel.json * servless ready * Testing gpt fix * Desparate fix * Desparate fix * servless ready * servless ready * Fix all GPT mistakes * Update index.ts * Added servless * Forced npm on vercel * Tested vercel dev and it's working * Tested vercel node * Tested vercel node * Tsting swaggr build * Tested vercel node * Tested vercel node * Tested vercel node * Trying to see doc * Try to bypass neon * another test * still trying to swagger * testing with public * Fixed all bugs relationship * Fixed emargement service * Fixed organisation service * fixed program service * Fixed subject * Edited Update University * Edited update methods * Optimized imports * Rollback to online configs * docs: add contributing guidelines to the project * Fix spelling errors in Swagger documentation for departments endpoint * feat: add endpoint to retrieve class sessions by teacher and period * refactor: remove unused imports from classSession.service.ts * feat: add endpoint and service method to retrieve emargements by teacher * feat: sort academic years by updated date in getAllAcademicYears method * feat: add ordering by updated date in getAllClassSessions and getClassSessionsByTeacherAndPeriod methods * feat: add ordering by updated date in getAllCourses method * feat: add ordering by updated date in getAllDepartements method * feat: add ordering by updated date in getAllEmargements and getEmargementsByTeacher methods * feat: add ordering by updated date in getAllOrganisations method * feat: add ordering by updated date in getAllProgrammes method * feat: add ordering by updated date in getAllUniversites method * feat: add ordering by updated date in getAllSubjects method * feat: add ordering parameter to getAllProgrammes method * feat: add ordering parameter to getAllOrganisations method * feat: add ordering parameter to getAllDepartements method * feat: add ordering parameter to getAllCourses method * feat: add ordering parameter to getAllUniversites and update getAllAcademicYears method * feat: add ordering parameter to getAllProgrammes method * feat: add ordering parameter to getAllOrganisations method * feat: add ordering parameter to getAllDepartements method * feat: add ordering parameter to getAllCourses method * feat: add ordering parameter to getAllAcademicYears method * feat: include programme relation in getCourseById and getAllCourses methods * refactor: remove programs relation from getDepartementById and getAllDepartements methods * refactor: remove courses relation from getProgrammeById and getAllProgrammes methods --------- Co-authored-by: mbradiouf14 <mbradiouf14@gmail.com> Co-authored-by: bradlab <37481556+bradlab@users.noreply.github.com> Co-authored-by: KARBOU Aristide <aristidetiger12@gmail.com>
    
  Alwil17 
      added a commit
      that referenced
      this pull request
    
      Jun 30, 2025 
    
    
      
  
    
      
    
  
* Fixed relationship issues (#35) (#36) * Typescript api initialzed * Update README * Add license file * Task in progress * Project task completed * Task in progress * Auth management + basic seed task completed * Add middleware with roles guard * Update README file * Update tsconfig * Reproduced entities * improved package.json * just changed name for more flexibility * Fixed datasource to run migrations * Added services * Added class-validator and Dtos * Added controller * Added routes * Pushed router to index.ts * Added and tested seeder * Testing swagger integration * Merging local devs to master (#4) * Dev (#2) * Typescript api initialzed * Update README * Add license file * Task in progress * Project task completed * Task in progress * Auth management + basic seed task completed * Add middleware with roles guard * Update README file * Update tsconfig --------- * Reproduced entities * improved package.json * just changed name for more flexibility * Fixed datasource to run migrations * Added services * Added class-validator and Dtos * Added controller * Added routes * Pushed router to index.ts * Added and tested seeder * Testing swagger integration --------- * Reproduced entities * improved package.json * just changed name for more flexibility # Conflicts: # src/config/data-source.ts # src/controllers/auth.controller.ts # src/controllers/user.controllers.ts # src/dto/user.dto.ts # src/index.ts # src/middleware/authorization.ts # src/routes/user.routes.ts dd * Added services * Added class-validator and Dtos * Added controller * Added routes * Pushed router to index.ts * Added and tested seeder * Init * Merged completely with devmain * User entity rename file * User entity removed * Rename Subject to Course + Add auth and users swagger doc * Add swagger for all models and routes * Add DTO validator on Auth and User routes * Fixed env variables * Added vercel support * Mind delete yarn * Delete yarn.lock * Adapting ts * Testing in local * Fixed vercel.json * servless ready * Testing gpt fix * Desparate fix * Desparate fix * servless ready * servless ready * Fix all GPT mistakes * Update index.ts * Added servless * Forced npm on vercel * Tested vercel dev and it's working * Tested vercel node * Tested vercel node * Tsting swaggr build * Tested vercel node * Tested vercel node * Tested vercel node * Trying to see doc * Try to bypass neon * another test * still trying to swagger * testing with public * Fixed all bugs relationship * Fixed emargement service * Fixed organisation service * fixed program service * Fixed subject * Edited Update University * Edited update methods * Optimized imports * Rollback to online configs * docs: add contributing guidelines to the project * Fix spelling errors in Swagger documentation for departments endpoint * feat: add endpoint to retrieve class sessions by teacher and period * refactor: remove unused imports from classSession.service.ts * feat: add endpoint and service method to retrieve emargements by teacher * feat: sort academic years by updated date in getAllAcademicYears method * feat: add ordering by updated date in getAllClassSessions and getClassSessionsByTeacherAndPeriod methods * feat: add ordering by updated date in getAllCourses method * feat: add ordering by updated date in getAllDepartements method * feat: add ordering by updated date in getAllEmargements and getEmargementsByTeacher methods * feat: add ordering by updated date in getAllOrganisations method * feat: add ordering by updated date in getAllProgrammes method * feat: add ordering by updated date in getAllUniversites method * feat: add ordering by updated date in getAllSubjects method * feat: add ordering parameter to getAllProgrammes method * feat: add ordering parameter to getAllOrganisations method * feat: add ordering parameter to getAllDepartements method * feat: add ordering parameter to getAllCourses method * feat: add ordering parameter to getAllUniversites and update getAllAcademicYears method * feat: add ordering parameter to getAllProgrammes method * feat: add ordering parameter to getAllOrganisations method * feat: add ordering parameter to getAllDepartements method * feat: add ordering parameter to getAllCourses method * feat: add ordering parameter to getAllAcademicYears method * feat: include programme relation in getCourseById and getAllCourses methods * refactor: remove programs relation from getDepartementById and getAllDepartements methods * refactor: remove courses relation from getProgrammeById and getAllProgrammes methods --------- Co-authored-by: mbradiouf14 <mbradiouf14@gmail.com> Co-authored-by: bradlab <37481556+bradlab@users.noreply.github.com> Co-authored-by: KARBOU Aristide <aristidetiger12@gmail.com> * Add admin and business statistics endpoints (#37) * feat: Implement statistics service, controller, DTO, and routes * feat: Add statistics routes, controller, and service with enhanced DTOs for querying * fix: Update error message for professor statistics retrieval * feat: Add admin and business statistics endpoints with corresponding DTOs and Swagger documentation * feat: Add business and admin statistics endpoints with security and detailed parameters * fix: Convert date range parameters to Date objects for accurate filtering in statistics queries * feat: Add bulk department creation endpoint with corresponding DTOs and service logic * fix: Correct select field name for class representative in getAllClassSessions method * fix: Enhance emargement retrieval by selecting specific professor fields and refining date range filtering in statistics * fix: Update logging configuration to use isDev variable and improve status condition checks in EmargementService * feat: Add response schema in statistics --------- Co-authored-by: mbradiouf14 <mbradiouf14@gmail.com> * Revert "Add admin and business statistics endpoints (#37)" This reverts commit 9cdcc04. --------- Co-authored-by: mbradiouf14 <mbradiouf14@gmail.com> Co-authored-by: bradlab <37481556+bradlab@users.noreply.github.com> Co-authored-by: KARBOU Aristide <aristidetiger12@gmail.com>
    
  Alwil17 
      added a commit
      that referenced
      this pull request
    
      Jun 30, 2025 
    
    
      
  
    
      
    
  
* Fixed relationship issues (#35) * Typescript api initialzed * Update README * Add license file * Task in progress * Project task completed * Task in progress * Auth management + basic seed task completed * Add middleware with roles guard * Update README file * Update tsconfig * Reproduced entities * improved package.json * just changed name for more flexibility * Fixed datasource to run migrations * Added services * Added class-validator and Dtos * Added controller * Added routes * Pushed router to index.ts * Added and tested seeder * Testing swagger integration * Merging local devs to master (#4) * Dev (#2) * Typescript api initialzed * Update README * Add license file * Task in progress * Project task completed * Task in progress * Auth management + basic seed task completed * Add middleware with roles guard * Update README file * Update tsconfig --------- Co-authored-by: mbradiouf14 <mbradiouf14@gmail.com> Co-authored-by: bradlab <37481556+bradlab@users.noreply.github.com> * Reproduced entities * improved package.json * just changed name for more flexibility * Fixed datasource to run migrations * Added services * Added class-validator and Dtos * Added controller * Added routes * Pushed router to index.ts * Added and tested seeder * Testing swagger integration --------- Co-authored-by: KARBOU Aristide <aristidetiger12@gmail.com> Co-authored-by: mbradiouf14 <mbradiouf14@gmail.com> Co-authored-by: bradlab <37481556+bradlab@users.noreply.github.com> * Reproduced entities * improved package.json * just changed name for more flexibility # Conflicts: # src/config/data-source.ts # src/controllers/auth.controller.ts # src/controllers/user.controllers.ts # src/dto/user.dto.ts # src/index.ts # src/middleware/authorization.ts # src/routes/user.routes.ts dd * Added services * Added class-validator and Dtos * Added controller * Added routes * Pushed router to index.ts * Added and tested seeder * Init * Merged completely with devmain * User entity rename file * User entity removed * Rename Subject to Course + Add auth and users swagger doc * Add swagger for all models and routes * Add DTO validator on Auth and User routes * Fixed env variables * Added vercel support * Mind delete yarn * Delete yarn.lock * Adapting ts * Testing in local * Fixed vercel.json * servless ready * Testing gpt fix * Desparate fix * Desparate fix * servless ready * servless ready * Fix all GPT mistakes * Update index.ts * Added servless * Forced npm on vercel * Tested vercel dev and it's working * Tested vercel node * Tested vercel node * Tsting swaggr build * Tested vercel node * Tested vercel node * Tested vercel node * Trying to see doc * Try to bypass neon * another test * still trying to swagger * testing with public * Fixed all bugs relationship * Fixed emargement service * Fixed organisation service * fixed program service * Fixed subject * Edited Update University * Edited update methods * Optimized imports * Rollback to online configs * docs: add contributing guidelines to the project * Fix spelling errors in Swagger documentation for departments endpoint * feat: add endpoint to retrieve class sessions by teacher and period * refactor: remove unused imports from classSession.service.ts * feat: add endpoint and service method to retrieve emargements by teacher * feat: sort academic years by updated date in getAllAcademicYears method * feat: add ordering by updated date in getAllClassSessions and getClassSessionsByTeacherAndPeriod methods * feat: add ordering by updated date in getAllCourses method * feat: add ordering by updated date in getAllDepartements method * feat: add ordering by updated date in getAllEmargements and getEmargementsByTeacher methods * feat: add ordering by updated date in getAllOrganisations method * feat: add ordering by updated date in getAllProgrammes method * feat: add ordering by updated date in getAllUniversites method * feat: add ordering by updated date in getAllSubjects method * feat: add ordering parameter to getAllProgrammes method * feat: add ordering parameter to getAllOrganisations method * feat: add ordering parameter to getAllDepartements method * feat: add ordering parameter to getAllCourses method * feat: add ordering parameter to getAllUniversites and update getAllAcademicYears method * feat: add ordering parameter to getAllProgrammes method * feat: add ordering parameter to getAllOrganisations method * feat: add ordering parameter to getAllDepartements method * feat: add ordering parameter to getAllCourses method * feat: add ordering parameter to getAllAcademicYears method * feat: include programme relation in getCourseById and getAllCourses methods * refactor: remove programs relation from getDepartementById and getAllDepartements methods * refactor: remove courses relation from getProgrammeById and getAllProgrammes methods --------- Co-authored-by: mbradiouf14 <mbradiouf14@gmail.com> Co-authored-by: bradlab <37481556+bradlab@users.noreply.github.com> Co-authored-by: KARBOU Aristide <aristidetiger12@gmail.com> * Revert 37 master (#39) * Fixed relationship issues (#35) (#36) * Typescript api initialzed * Update README * Add license file * Task in progress * Project task completed * Task in progress * Auth management + basic seed task completed * Add middleware with roles guard * Update README file * Update tsconfig * Reproduced entities * improved package.json * just changed name for more flexibility * Fixed datasource to run migrations * Added services * Added class-validator and Dtos * Added controller * Added routes * Pushed router to index.ts * Added and tested seeder * Testing swagger integration * Merging local devs to master (#4) * Dev (#2) * Typescript api initialzed * Update README * Add license file * Task in progress * Project task completed * Task in progress * Auth management + basic seed task completed * Add middleware with roles guard * Update README file * Update tsconfig --------- * Reproduced entities * improved package.json * just changed name for more flexibility * Fixed datasource to run migrations * Added services * Added class-validator and Dtos * Added controller * Added routes * Pushed router to index.ts * Added and tested seeder * Testing swagger integration --------- * Reproduced entities * improved package.json * just changed name for more flexibility # Conflicts: # src/config/data-source.ts # src/controllers/auth.controller.ts # src/controllers/user.controllers.ts # src/dto/user.dto.ts # src/index.ts # src/middleware/authorization.ts # src/routes/user.routes.ts dd * Added services * Added class-validator and Dtos * Added controller * Added routes * Pushed router to index.ts * Added and tested seeder * Init * Merged completely with devmain * User entity rename file * User entity removed * Rename Subject to Course + Add auth and users swagger doc * Add swagger for all models and routes * Add DTO validator on Auth and User routes * Fixed env variables * Added vercel support * Mind delete yarn * Delete yarn.lock * Adapting ts * Testing in local * Fixed vercel.json * servless ready * Testing gpt fix * Desparate fix * Desparate fix * servless ready * servless ready * Fix all GPT mistakes * Update index.ts * Added servless * Forced npm on vercel * Tested vercel dev and it's working * Tested vercel node * Tested vercel node * Tsting swaggr build * Tested vercel node * Tested vercel node * Tested vercel node * Trying to see doc * Try to bypass neon * another test * still trying to swagger * testing with public * Fixed all bugs relationship * Fixed emargement service * Fixed organisation service * fixed program service * Fixed subject * Edited Update University * Edited update methods * Optimized imports * Rollback to online configs * docs: add contributing guidelines to the project * Fix spelling errors in Swagger documentation for departments endpoint * feat: add endpoint to retrieve class sessions by teacher and period * refactor: remove unused imports from classSession.service.ts * feat: add endpoint and service method to retrieve emargements by teacher * feat: sort academic years by updated date in getAllAcademicYears method * feat: add ordering by updated date in getAllClassSessions and getClassSessionsByTeacherAndPeriod methods * feat: add ordering by updated date in getAllCourses method * feat: add ordering by updated date in getAllDepartements method * feat: add ordering by updated date in getAllEmargements and getEmargementsByTeacher methods * feat: add ordering by updated date in getAllOrganisations method * feat: add ordering by updated date in getAllProgrammes method * feat: add ordering by updated date in getAllUniversites method * feat: add ordering by updated date in getAllSubjects method * feat: add ordering parameter to getAllProgrammes method * feat: add ordering parameter to getAllOrganisations method * feat: add ordering parameter to getAllDepartements method * feat: add ordering parameter to getAllCourses method * feat: add ordering parameter to getAllUniversites and update getAllAcademicYears method * feat: add ordering parameter to getAllProgrammes method * feat: add ordering parameter to getAllOrganisations method * feat: add ordering parameter to getAllDepartements method * feat: add ordering parameter to getAllCourses method * feat: add ordering parameter to getAllAcademicYears method * feat: include programme relation in getCourseById and getAllCourses methods * refactor: remove programs relation from getDepartementById and getAllDepartements methods * refactor: remove courses relation from getProgrammeById and getAllProgrammes methods --------- Co-authored-by: mbradiouf14 <mbradiouf14@gmail.com> Co-authored-by: bradlab <37481556+bradlab@users.noreply.github.com> Co-authored-by: KARBOU Aristide <aristidetiger12@gmail.com> * Add admin and business statistics endpoints (#37) * feat: Implement statistics service, controller, DTO, and routes * feat: Add statistics routes, controller, and service with enhanced DTOs for querying * fix: Update error message for professor statistics retrieval * feat: Add admin and business statistics endpoints with corresponding DTOs and Swagger documentation * feat: Add business and admin statistics endpoints with security and detailed parameters * fix: Convert date range parameters to Date objects for accurate filtering in statistics queries * feat: Add bulk department creation endpoint with corresponding DTOs and service logic * fix: Correct select field name for class representative in getAllClassSessions method * fix: Enhance emargement retrieval by selecting specific professor fields and refining date range filtering in statistics * fix: Update logging configuration to use isDev variable and improve status condition checks in EmargementService * feat: Add response schema in statistics --------- Co-authored-by: mbradiouf14 <mbradiouf14@gmail.com> * Revert "Add admin and business statistics endpoints (#37)" This reverts commit 9cdcc04. --------- Co-authored-by: mbradiouf14 <mbradiouf14@gmail.com> Co-authored-by: bradlab <37481556+bradlab@users.noreply.github.com> Co-authored-by: KARBOU Aristide <aristidetiger12@gmail.com> --------- Co-authored-by: mbradiouf14 <mbradiouf14@gmail.com> Co-authored-by: bradlab <37481556+bradlab@users.noreply.github.com> Co-authored-by: KARBOU Aristide <aristidetiger12@gmail.com>
    
  Alwil17 
      added a commit
      that referenced
      this pull request
    
      Jun 30, 2025 
    
    
      
  
    
      
    
  
* Typescript api initialzed * Update README * Add license file * Task in progress * Project task completed * Task in progress * Auth management + basic seed task completed * Add middleware with roles guard * Update README file * Update tsconfig * Reproduced entities * improved package.json * just changed name for more flexibility * Fixed datasource to run migrations * Added services * Added class-validator and Dtos * Added controller * Added routes * Pushed router to index.ts * Added and tested seeder * Testing swagger integration * Merging local devs to master (#4) * Dev (#2) * Typescript api initialzed * Update README * Add license file * Task in progress * Project task completed * Task in progress * Auth management + basic seed task completed * Add middleware with roles guard * Update README file * Update tsconfig --------- Co-authored-by: mbradiouf14 <mbradiouf14@gmail.com> Co-authored-by: bradlab <37481556+bradlab@users.noreply.github.com> * Reproduced entities * improved package.json * just changed name for more flexibility * Fixed datasource to run migrations * Added services * Added class-validator and Dtos * Added controller * Added routes * Pushed router to index.ts * Added and tested seeder * Testing swagger integration --------- Co-authored-by: KARBOU Aristide <aristidetiger12@gmail.com> Co-authored-by: mbradiouf14 <mbradiouf14@gmail.com> Co-authored-by: bradlab <37481556+bradlab@users.noreply.github.com> * Reproduced entities * improved package.json * just changed name for more flexibility # Conflicts: # src/config/data-source.ts # src/controllers/auth.controller.ts # src/controllers/user.controllers.ts # src/dto/user.dto.ts # src/index.ts # src/middleware/authorization.ts # src/routes/user.routes.ts dd * Added services * Added class-validator and Dtos * Added controller * Added routes * Pushed router to index.ts * Added and tested seeder * Init * Merged completely with devmain * User entity rename file * User entity removed * Rename Subject to Course + Add auth and users swagger doc * Add swagger for all models and routes * Add DTO validator on Auth and User routes * Fixed env variables * Added vercel support * Mind delete yarn * Delete yarn.lock * Adapting ts * Testing in local * Fixed vercel.json * servless ready * Testing gpt fix * Desparate fix * Desparate fix * servless ready * servless ready * Fix all GPT mistakes * Update index.ts * Added servless * Forced npm on vercel * Tested vercel dev and it's working * Tested vercel node * Tested vercel node * Tsting swaggr build * Tested vercel node * Tested vercel node * Tested vercel node * Trying to see doc * Try to bypass neon * another test * still trying to swagger * testing with public * Fixed all bugs relationship * Fixed emargement service * Fixed organisation service * fixed program service * Fixed subject * Edited Update University * Edited update methods * Optimized imports * Rollback to online configs * docs: add contributing guidelines to the project * Fix spelling errors in Swagger documentation for departments endpoint * feat: add endpoint to retrieve class sessions by teacher and period * refactor: remove unused imports from classSession.service.ts * feat: add endpoint and service method to retrieve emargements by teacher * feat: sort academic years by updated date in getAllAcademicYears method * feat: add ordering by updated date in getAllClassSessions and getClassSessionsByTeacherAndPeriod methods * feat: add ordering by updated date in getAllCourses method * feat: add ordering by updated date in getAllDepartements method * feat: add ordering by updated date in getAllEmargements and getEmargementsByTeacher methods * feat: add ordering by updated date in getAllOrganisations method * feat: add ordering by updated date in getAllProgrammes method * feat: add ordering by updated date in getAllUniversites method * feat: add ordering by updated date in getAllSubjects method * feat: add ordering parameter to getAllProgrammes method * feat: add ordering parameter to getAllOrganisations method * feat: add ordering parameter to getAllDepartements method * feat: add ordering parameter to getAllCourses method * feat: add ordering parameter to getAllUniversites and update getAllAcademicYears method * feat: add ordering parameter to getAllProgrammes method * feat: add ordering parameter to getAllOrganisations method * feat: add ordering parameter to getAllDepartements method * feat: add ordering parameter to getAllCourses method * feat: add ordering parameter to getAllAcademicYears method * feat: include programme relation in getCourseById and getAllCourses methods * refactor: remove programs relation from getDepartementById and getAllDepartements methods * refactor: remove courses relation from getProgrammeById and getAllProgrammes methods * Fixed relationship issues (#35) * Typescript api initialzed * Update README * Add license file * Task in progress * Project task completed * Task in progress * Auth management + basic seed task completed * Add middleware with roles guard * Update README file * Update tsconfig * Reproduced entities * improved package.json * just changed name for more flexibility * Fixed datasource to run migrations * Added services * Added class-validator and Dtos * Added controller * Added routes * Pushed router to index.ts * Added and tested seeder * Testing swagger integration * Merging local devs to master (#4) * Dev (#2) * Typescript api initialzed * Update README * Add license file * Task in progress * Project task completed * Task in progress * Auth management + basic seed task completed * Add middleware with roles guard * Update README file * Update tsconfig --------- Co-authored-by: mbradiouf14 <mbradiouf14@gmail.com> Co-authored-by: bradlab <37481556+bradlab@users.noreply.github.com> * Reproduced entities * improved package.json * just changed name for more flexibility * Fixed datasource to run migrations * Added services * Added class-validator and Dtos * Added controller * Added routes * Pushed router to index.ts * Added and tested seeder * Testing swagger integration --------- Co-authored-by: KARBOU Aristide <aristidetiger12@gmail.com> Co-authored-by: mbradiouf14 <mbradiouf14@gmail.com> Co-authored-by: bradlab <37481556+bradlab@users.noreply.github.com> * Reproduced entities * improved package.json * just changed name for more flexibility # Conflicts: # src/config/data-source.ts # src/controllers/auth.controller.ts # src/controllers/user.controllers.ts # src/dto/user.dto.ts # src/index.ts # src/middleware/authorization.ts # src/routes/user.routes.ts dd * Added services * Added class-validator and Dtos * Added controller * Added routes * Pushed router to index.ts * Added and tested seeder * Init * Merged completely with devmain * User entity rename file * User entity removed * Rename Subject to Course + Add auth and users swagger doc * Add swagger for all models and routes * Add DTO validator on Auth and User routes * Fixed env variables * Added vercel support * Mind delete yarn * Delete yarn.lock * Adapting ts * Testing in local * Fixed vercel.json * servless ready * Testing gpt fix * Desparate fix * Desparate fix * servless ready * servless ready * Fix all GPT mistakes * Update index.ts * Added servless * Forced npm on vercel * Tested vercel dev and it's working * Tested vercel node * Tested vercel node * Tsting swaggr build * Tested vercel node * Tested vercel node * Tested vercel node * Trying to see doc * Try to bypass neon * another test * still trying to swagger * testing with public * Fixed all bugs relationship * Fixed emargement service * Fixed organisation service * fixed program service * Fixed subject * Edited Update University * Edited update methods * Optimized imports * Rollback to online configs * docs: add contributing guidelines to the project * Fix spelling errors in Swagger documentation for departments endpoint * feat: add endpoint to retrieve class sessions by teacher and period * refactor: remove unused imports from classSession.service.ts * feat: add endpoint and service method to retrieve emargements by teacher * feat: sort academic years by updated date in getAllAcademicYears method * feat: add ordering by updated date in getAllClassSessions and getClassSessionsByTeacherAndPeriod methods * feat: add ordering by updated date in getAllCourses method * feat: add ordering by updated date in getAllDepartements method * feat: add ordering by updated date in getAllEmargements and getEmargementsByTeacher methods * feat: add ordering by updated date in getAllOrganisations method * feat: add ordering by updated date in getAllProgrammes method * feat: add ordering by updated date in getAllUniversites method * feat: add ordering by updated date in getAllSubjects method * feat: add ordering parameter to getAllProgrammes method * feat: add ordering parameter to getAllOrganisations method * feat: add ordering parameter to getAllDepartements method * feat: add ordering parameter to getAllCourses method * feat: add ordering parameter to getAllUniversites and update getAllAcademicYears method * feat: add ordering parameter to getAllProgrammes method * feat: add ordering parameter to getAllOrganisations method * feat: add ordering parameter to getAllDepartements method * feat: add ordering parameter to getAllCourses method * feat: add ordering parameter to getAllAcademicYears method * feat: include programme relation in getCourseById and getAllCourses methods * refactor: remove programs relation from getDepartementById and getAllDepartements methods * refactor: remove courses relation from getProgrammeById and getAllProgrammes methods --------- Co-authored-by: mbradiouf14 <mbradiouf14@gmail.com> Co-authored-by: bradlab <37481556+bradlab@users.noreply.github.com> Co-authored-by: KARBOU Aristide <aristidetiger12@gmail.com> * Revert 37 master (#39) * Fixed relationship issues (#35) (#36) * Typescript api initialzed * Update README * Add license file * Task in progress * Project task completed * Task in progress * Auth management + basic seed task completed * Add middleware with roles guard * Update README file * Update tsconfig * Reproduced entities * improved package.json * just changed name for more flexibility * Fixed datasource to run migrations * Added services * Added class-validator and Dtos * Added controller * Added routes * Pushed router to index.ts * Added and tested seeder * Testing swagger integration * Merging local devs to master (#4) * Dev (#2) * Typescript api initialzed * Update README * Add license file * Task in progress * Project task completed * Task in progress * Auth management + basic seed task completed * Add middleware with roles guard * Update README file * Update tsconfig --------- * Reproduced entities * improved package.json * just changed name for more flexibility * Fixed datasource to run migrations * Added services * Added class-validator and Dtos * Added controller * Added routes * Pushed router to index.ts * Added and tested seeder * Testing swagger integration --------- * Reproduced entities * improved package.json * just changed name for more flexibility # Conflicts: # src/config/data-source.ts # src/controllers/auth.controller.ts # src/controllers/user.controllers.ts # src/dto/user.dto.ts # src/index.ts # src/middleware/authorization.ts # src/routes/user.routes.ts dd * Added services * Added class-validator and Dtos * Added controller * Added routes * Pushed router to index.ts * Added and tested seeder * Init * Merged completely with devmain * User entity rename file * User entity removed * Rename Subject to Course + Add auth and users swagger doc * Add swagger for all models and routes * Add DTO validator on Auth and User routes * Fixed env variables * Added vercel support * Mind delete yarn * Delete yarn.lock * Adapting ts * Testing in local * Fixed vercel.json * servless ready * Testing gpt fix * Desparate fix * Desparate fix * servless ready * servless ready * Fix all GPT mistakes * Update index.ts * Added servless * Forced npm on vercel * Tested vercel dev and it's working * Tested vercel node * Tested vercel node * Tsting swaggr build * Tested vercel node * Tested vercel node * Tested vercel node * Trying to see doc * Try to bypass neon * another test * still trying to swagger * testing with public * Fixed all bugs relationship * Fixed emargement service * Fixed organisation service * fixed program service * Fixed subject * Edited Update University * Edited update methods * Optimized imports * Rollback to online configs * docs: add contributing guidelines to the project * Fix spelling errors in Swagger documentation for departments endpoint * feat: add endpoint to retrieve class sessions by teacher and period * refactor: remove unused imports from classSession.service.ts * feat: add endpoint and service method to retrieve emargements by teacher * feat: sort academic years by updated date in getAllAcademicYears method * feat: add ordering by updated date in getAllClassSessions and getClassSessionsByTeacherAndPeriod methods * feat: add ordering by updated date in getAllCourses method * feat: add ordering by updated date in getAllDepartements method * feat: add ordering by updated date in getAllEmargements and getEmargementsByTeacher methods * feat: add ordering by updated date in getAllOrganisations method * feat: add ordering by updated date in getAllProgrammes method * feat: add ordering by updated date in getAllUniversites method * feat: add ordering by updated date in getAllSubjects method * feat: add ordering parameter to getAllProgrammes method * feat: add ordering parameter to getAllOrganisations method * feat: add ordering parameter to getAllDepartements method * feat: add ordering parameter to getAllCourses method * feat: add ordering parameter to getAllUniversites and update getAllAcademicYears method * feat: add ordering parameter to getAllProgrammes method * feat: add ordering parameter to getAllOrganisations method * feat: add ordering parameter to getAllDepartements method * feat: add ordering parameter to getAllCourses method * feat: add ordering parameter to getAllAcademicYears method * feat: include programme relation in getCourseById and getAllCourses methods * refactor: remove programs relation from getDepartementById and getAllDepartements methods * refactor: remove courses relation from getProgrammeById and getAllProgrammes methods --------- Co-authored-by: mbradiouf14 <mbradiouf14@gmail.com> Co-authored-by: bradlab <37481556+bradlab@users.noreply.github.com> Co-authored-by: KARBOU Aristide <aristidetiger12@gmail.com> * Add admin and business statistics endpoints (#37) * feat: Implement statistics service, controller, DTO, and routes * feat: Add statistics routes, controller, and service with enhanced DTOs for querying * fix: Update error message for professor statistics retrieval * feat: Add admin and business statistics endpoints with corresponding DTOs and Swagger documentation * feat: Add business and admin statistics endpoints with security and detailed parameters * fix: Convert date range parameters to Date objects for accurate filtering in statistics queries * feat: Add bulk department creation endpoint with corresponding DTOs and service logic * fix: Correct select field name for class representative in getAllClassSessions method * fix: Enhance emargement retrieval by selecting specific professor fields and refining date range filtering in statistics * fix: Update logging configuration to use isDev variable and improve status condition checks in EmargementService * feat: Add response schema in statistics --------- Co-authored-by: mbradiouf14 <mbradiouf14@gmail.com> * Revert "Add admin and business statistics endpoints (#37)" This reverts commit 9cdcc04. --------- Co-authored-by: mbradiouf14 <mbradiouf14@gmail.com> Co-authored-by: bradlab <37481556+bradlab@users.noreply.github.com> Co-authored-by: KARBOU Aristide <aristidetiger12@gmail.com> --------- Co-authored-by: mbradiouf14 <mbradiouf14@gmail.com> Co-authored-by: bradlab <37481556+bradlab@users.noreply.github.com> Co-authored-by: KARBOU Aristide <aristidetiger12@gmail.com>
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
      
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
No description provided.