Skip to content

Conversation

@tiger-githubb
Copy link
Owner

No description provided.

@tiger-githubb tiger-githubb merged commit 9e9629c into master Apr 1, 2025
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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants