|
1 | | -<p align="center"> |
2 | | - <a href="http://nestjs.com/" target="blank"><img src="https://nestjs.com/img/logo-small.svg" width="200" alt="Nest Logo" /></a> |
3 | | -</p> |
4 | | - |
5 | | -[circleci-image]: https://img.shields.io/circleci/build/github/nestjs/nest/master?token=abc123def456 |
6 | | -[circleci-url]: https://circleci.com/gh/nestjs/nest |
7 | | - |
8 | | - <p align="center">A progressive <a href="http://nodejs.org" target="_blank">Node.js</a> framework for building efficient and scalable server-side applications.</p> |
9 | | - <p align="center"> |
10 | | -<a href="https://www.npmjs.com/~nestjscore" target="_blank"><img src="https://img.shields.io/npm/v/@nestjs/core.svg" alt="NPM Version" /></a> |
11 | | -<a href="https://www.npmjs.com/~nestjscore" target="_blank"><img src="https://img.shields.io/npm/l/@nestjs/core.svg" alt="Package License" /></a> |
12 | | -<a href="https://www.npmjs.com/~nestjscore" target="_blank"><img src="https://img.shields.io/npm/dm/@nestjs/common.svg" alt="NPM Downloads" /></a> |
13 | | -<a href="https://circleci.com/gh/nestjs/nest" target="_blank"><img src="https://img.shields.io/circleci/build/github/nestjs/nest/master" alt="CircleCI" /></a> |
14 | | -<a href="https://coveralls.io/github/nestjs/nest?branch=master" target="_blank"><img src="https://coveralls.io/repos/github/nestjs/nest/badge.svg?branch=master#9" alt="Coverage" /></a> |
15 | | -<a href="https://discord.gg/G7Qnnhy" target="_blank"><img src="https://img.shields.io/badge/discord-online-brightgreen.svg" alt="Discord"/></a> |
16 | | -<a href="https://opencollective.com/nest#backer" target="_blank"><img src="https://opencollective.com/nest/backers/badge.svg" alt="Backers on Open Collective" /></a> |
17 | | -<a href="https://opencollective.com/nest#sponsor" target="_blank"><img src="https://opencollective.com/nest/sponsors/badge.svg" alt="Sponsors on Open Collective" /></a> |
18 | | - <a href="https://paypal.me/kamilmysliwiec" target="_blank"><img src="https://img.shields.io/badge/Donate-PayPal-ff3f59.svg"/></a> |
19 | | - <a href="https://opencollective.com/nest#sponsor" target="_blank"><img src="https://img.shields.io/badge/Support%20us-Open%20Collective-41B883.svg" alt="Support us"></a> |
20 | | - <a href="https://twitter.com/nestframework" target="_blank"><img src="https://img.shields.io/twitter/follow/nestframework.svg?style=social&label=Follow"></a> |
21 | | -</p> |
22 | | - <!--[](https://opencollective.com/nest#backer) |
23 | | - [](https://opencollective.com/nest#sponsor)--> |
24 | | - |
25 | 1 | ## Description |
26 | 2 |
|
27 | | -[Nest](https://github.com/nestjs/nest) framework TypeScript starter repository. |
| 3 | +[Webconf de l'Etat](https://preprod.webconf.numerique.gouv.fr/) is an open source project for webconferencing between agents. |
| 4 | + |
| 5 | +## Sequence diagram |
| 6 | + |
| 7 | +```mermaid |
| 8 | +sequenceDiagram |
| 9 | +wce-portail->>+ wce-api: GET : /authentication/whereami |
| 10 | +wce-api-->>-wce-portail: "RIE" ou "INTERNET" |
| 11 | +wce-portail->>+ wce-api: GET : /authentication/login_authorize |
| 12 | +wce-api-->>-wce-portail: 302 redirect to cerbère |
| 13 | +wce-portail->>+ wce-api: GET : /authentication/login_callback |
| 14 | +wce-api-->>-wce-portail: {roomName, jwt, accessToken} |
| 15 | +wce-portail->>+ wce-api: GET : /authentication/logout |
| 16 | +wce-api-->>-wce-portail: 302 redirect to cerbère |
| 17 | +wce-portail->>+ wce-api: GET : /authentication/logout_callback |
| 18 | +wce-api-->>-wce-portail: {url: "/"} |
| 19 | +wce-portail->>+ wce-api: GET : /authentication/refreshToken |
| 20 | +wce-api-->>-wce-portail: {accessToken} |
| 21 | +wce-portail->>+ wce-api: GET : /roomExists/:roomName |
| 22 | +wce-api->>+ prosody: GET : /roomExists/:roomName |
| 23 | +prosody-->>-wce-api: true |
| 24 | +wce-api-->>-wce-portail: {accessToken} |
| 25 | +wce-portail->>+ wce-api: GET : /:roomName |
| 26 | +wce-api-->>-wce-portail: {roomName, jwt, ?accessToken} |
| 27 | +wce-portail->>+ wce-api: POST : /conference/create/byemail |
| 28 | +wce-api-->>-wce-portail: { isWhitelisted: true, sended: 'email sended' } |
| 29 | +wce-portail->>+ wce-api: GET : /stats/homePage |
| 30 | +wce-api-->>-wce-portail: { conf, part } |
| 31 | +wce-portail->>+ wce-api: POST : /feedback |
| 32 | +wce-api->>+ mongoDB: {isVPN: 0,rt: {inv: 0,qty: 0},com: "string"} |
| 33 | +mongoDB-->- wce-api: 201 |
| 34 | +wce-api-->>-wce-portail: 201 |
| 35 | +``` |
28 | 36 |
|
29 | 37 | ## Installation |
30 | 38 |
|
31 | 39 | ```bash |
| 40 | + |
32 | 41 | $ npm install |
| 42 | + |
33 | 43 | ``` |
34 | 44 |
|
35 | 45 | ## Running the app |
36 | 46 |
|
37 | 47 | ```bash |
| 48 | + |
38 | 49 | # development |
| 50 | + |
39 | 51 | $ npm run start |
40 | 52 |
|
| 53 | + |
| 54 | + |
41 | 55 | # watch mode |
| 56 | + |
42 | 57 | $ npm run start:dev |
43 | 58 |
|
| 59 | + |
| 60 | + |
44 | 61 | # production mode |
| 62 | + |
45 | 63 | $ npm run start:prod |
| 64 | + |
46 | 65 | ``` |
47 | 66 |
|
48 | 67 | ## Test |
49 | 68 |
|
50 | 69 | ```bash |
| 70 | + |
51 | 71 | # unit tests |
| 72 | + |
52 | 73 | $ npm run test |
53 | 74 |
|
| 75 | + |
| 76 | + |
54 | 77 | # e2e tests |
| 78 | + |
55 | 79 | $ npm run test:e2e |
56 | 80 |
|
| 81 | + |
| 82 | + |
57 | 83 | # test coverage |
58 | | -$ npm run test:cov |
59 | | -``` |
60 | 84 |
|
61 | | -## Support |
| 85 | +$ npm run test:cov |
62 | 86 |
|
63 | | -Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please [read more here](https://docs.nestjs.com/support). |
| 87 | +``` |
64 | 88 |
|
65 | 89 | ## Stay in touch |
66 | 90 |
|
67 | | -- Author - [Kamil Myśliwiec](https://kamilmysliwiec.com) |
68 | | -- Website - [https://nestjs.com](https://nestjs.com/) |
69 | | -- Twitter - [@nestframework](https://twitter.com/nestframework) |
| 91 | +- Author - [Youssef El Mkhantar](https://github.com/youssefelmkhantar) |
| 92 | + |
| 93 | +- Website - [https://preprod.webconf.numerique.gouv.fr/](https://preprod.webconf.numerique.gouv.fr/) |
70 | 94 |
|
71 | 95 | ## License |
72 | 96 |
|
73 | | -Nest is [MIT licensed](LICENSE). |
| 97 | +Webconf is [MIT licensed](LICENSE). |
0 commit comments