Domego est un jeu sérieux dans lequel chaque joueur prend le rôle d’un acteur d’une opération de construction. L’objectif est double : collectivement les joueurs doivent faire en sorte que le projet se déroule au mieux et termine dans les délais avec le coût le plus faible possible, individuellement, ils doivent assurer la pérennité de leur activité en répondant à différents objectifs (faire des bénéfices, assurer leur renommée…).
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
Before starting the installation, check the Frameworks and tools used (part 'Built with').
Before deploying D, the server and the client must be install on your computer. Then, build the server project like this :
cd Server
mvn clean install
If you want to deploy the app on your computer, that's all you have to do, the app can be running at this point
But if you deploy the app in docker, you need to build the image with the following command :
cd Server
sh buildDockerServer.sh
Then, you have to do the same thing for the client.
cd Angular
npm install
If you don't run the client on the same computer as the server. You must change the ip adress of the server. Go to Angular\src\app\model\url.ts and change the variables.
When it's done, if you want you can build the docker image.
cd Angular
sh buildDockerClient.sh
Then, to deploy on your computer, you just have to run the server and the client.
For the client, you need to use this command :
cd Angular
ng serve --host 0.0.0.0
And for the server, it is this one :
cd Server
mvn spring-boot:run
The server needs MongoDB to work correctly, so if you don't have it, we had create a docker-compose with a mongoDB container. To run this multi-container docker applications, just enter this command to the root of the application :
docker-compose up --build
We have developped some tests to check the behavior of the server. For run all the tests, you just have to use this command :
cd Server
mvn test
-connect to domego virtual machin (ask access to polytech dsi office)
******** start mongodb server*********** sudo systemctl start mongod => if error run sudo systemctl daemon-reload and re-run the command sudo systemctl enable mongod
- go into domego folder -cd Domego
****** run backend ************ java -jar jar-filename ( remlace jar-filename with the jar file you will find in domego folder )
****** run frontend ************ -sudo su -cd Domego -npm start
- Angular - The web framework used
- NodeJS - Dependency Management for web app
- Maven - Dependency Management for server app
- Spring Boot - The server framework used
- Java 11 - The server language and version used
- MongoDB - The database framework used
-
Gilles Chandelier - Initial work - GillesChandelier
-
Jiaqi Lui - Initial work - LiuJiaqi-unice
-
Gaetan Vialon - Initial work - VialonGaetan
-
Wei Wang - Initial work - WANGWei118
-
Denis ADANLEHOUSSI - Project improvement - Denisko185
-
Armand HONYIGLOH - Project improvement - RmannLePhilosopheFou