{"id":23735609,"url":"https://github.com/wandri/chat-spring-kafka-angular-react-vue","last_synced_at":"2025-10-29T04:45:07.220Z","repository":{"id":39553666,"uuid":"177989302","full_name":"wandri/chat-spring-kafka-angular-react-vue","owner":"wandri","description":"A live chat done with Angular, React, Vue and tested by Cypress","archived":false,"fork":false,"pushed_at":"2023-12-11T10:47:27.000Z","size":3197,"stargazers_count":13,"open_issues_count":8,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-22T22:57:07.260Z","etag":null,"topics":["angular","cypress","github-actions","java","kafka","mongodb","react","spring-boot","typescript","vuejs"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wandri.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-03-27T12:23:17.000Z","updated_at":"2024-06-04T22:39:13.000Z","dependencies_parsed_at":"2023-02-06T11:31:33.704Z","dependency_job_id":null,"html_url":"https://github.com/wandri/chat-spring-kafka-angular-react-vue","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wandri%2Fchat-spring-kafka-angular-react-vue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wandri%2Fchat-spring-kafka-angular-react-vue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wandri%2Fchat-spring-kafka-angular-react-vue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wandri%2Fchat-spring-kafka-angular-react-vue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wandri","download_url":"https://codeload.github.com/wandri/chat-spring-kafka-angular-react-vue/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":231949477,"owners_count":18450499,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["angular","cypress","github-actions","java","kafka","mongodb","react","spring-boot","typescript","vuejs"],"created_at":"2024-12-31T06:19:52.290Z","updated_at":"2025-10-29T04:45:02.156Z","avatar_url":"https://github.com/wandri.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Chat : Full-stack coding exercise\n\n## Presentation\n\nThis application is a Whatsapp-like application. It provides realtime conversations with other people.\n\n  ![user page](./doc/user_screen.jpg)\n  ![chat page](./doc/message_screen.jpg)\n## Structure\n\n### API\nThe api is done with Java 8 and Spring Boot 2.\nIt provides a websocket connection for realtime conversation.\n\n### Multiple Fronts\n- [Angular](https://angular.io) (Typescript \u0026 scss)\n\n- [React](https://reactjs.org/) (Typescript \u0026 scss)\n\n- [Vue](https://fr.vuejs.org/) (Typescript \u0026 scss)\n\n## Initiate the stack locally\n\n### Database\n\nFor the project, we will launch a docker image of mongoDB and Kafka.\n\nWe can achieve to code a chat without any store or message broker. But if we do so we lose, to my mind, all the interest of the project.\n\n1. Install [Docker](https://docs.docker.com/install/)\n2. Install [docker-compose](https://docs.docker.com/compose/install/)\n3. To run Kafka and Mongo images, execute in the deploy folder: \n    ```\n    docker compose -f docker-compose.yml up -d\n    ```\n### API\n\n1. Install Java 8 and [maven](https://maven.apache.org/install.html)\n2. Generate the maven packages and the Avro file with :\n    ```\n    mvn compile\n    ```\n\n### Front\n\n1. Install [NodeJs](https://nodejs.org/en/)\n2. For Angular, install the dependencies :\n    ```\n    npm install -g @angular/cli\n    ```\n3. Install the module of the project in the front folders:\n    ```\n    npm i\n    ```\n\n## How to start locally\n\n### API\n\nLaunch the API with : \n\n```\nmvn spring-boot:run\n```\n\n### Front\n\n#### Angular\n\nRun the application in localhost:4200 in the front folder : \n```\nng serve -o\n```\n\n#### React\n\nRun the application in localhost:3000 in the front folder : \n```\nnpm start\n```\n\n#### Vue\n\nRun the application in localhost:5173 in the front folder : \n```\nnpm run serve\n```\n\n## What can be better :\n\n- The api is not completely independent. It will be better if we don't use `User` and `Message` from the domain. \nWe need to create new classes for the API and map `Domain` and `User` to them.\n- For the purpose of the project, there is **NO test**. And this is a bad practice. We need to improve the test coverage.\n- The format of messages is known. It could be interesting to check if SQL can be better.\n- I use Angular to iterate quickly. But For better performance, it can be done without any framework, in pure JS.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwandri%2Fchat-spring-kafka-angular-react-vue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwandri%2Fchat-spring-kafka-angular-react-vue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwandri%2Fchat-spring-kafka-angular-react-vue/lists"}