Skip to content
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

Rama miguel #33

Open
wants to merge 64 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
64 commits
Select commit Hold shift + click to select a range
a5bec38
Customize repository
pglez82 Jan 20, 2025
562085d
Update release.yml
cidinene Jan 28, 2025
ec6173b
Realización de la parte 3 de la documentación
SergioGarSant Feb 17, 2025
7ed295d
Cambios documentacion 1.
miguelgutierrezg Feb 18, 2025
50b7298
Merge branch 'master' into Rama-Sergio
SergioGarSant Feb 18, 2025
212e49f
Merge branch 'master' into RamaMiguel
miguelgutierrezg Feb 18, 2025
96ca954
Prueba
SergioGarSant Feb 18, 2025
da873ca
documentacion
adrianmahialoredo Feb 18, 2025
bae5c3c
Merge branch 'Rama-Sergio' of https://github.com/Arquisoft/wichat_es4…
SergioGarSant Feb 18, 2025
14e4b9e
Merge pull request #9 from Arquisoft/Rama-Sergio
BrunoPrzCu Feb 18, 2025
1dd0851
Merge branch 'master' into RamaMiguel
miguelgutierrezg Feb 18, 2025
31f23ac
Merge pull request #10 from Arquisoft/RamaMiguel
miguelgutierrezg Feb 18, 2025
336ab98
documentacion
adrianmahialoredo Feb 18, 2025
bf51ce1
Modificacion llm service para su correcto funcionamiento
miguelgutierrezg Feb 18, 2025
96a01cc
Merge branch 'RamaMiguel' of https://github.com/Arquisoft/wichat_es4c…
miguelgutierrezg Feb 18, 2025
12a74bf
docu
adrianmahialoredo Feb 18, 2025
411f4e9
documentacion
adrianmahialoredo Feb 18, 2025
740c5ca
docu
adrianmahialoredo Feb 18, 2025
7c86796
Merge pull request #12 from Arquisoft/Rama-Adri
adrianmahialoredo Feb 18, 2025
14be24d
Finished Building Block View Documentation
BrunoPrzCu Feb 18, 2025
eb23548
Merge pull request #26 from Arquisoft/Rama-Bruno
uo287983 Feb 18, 2025
a0631cd
Acabado el apartado 4 de la documentación
uo287983 Feb 19, 2025
087930b
Merge pull request #27 from Arquisoft/Rama-Andrés
BrunoPrzCu Feb 19, 2025
e2e3372
Finished Documentation 08 - Cross-cutting Concepts
BrunoPrzCu Feb 19, 2025
06b3390
Finished Documentation - 12 Glossary
BrunoPrzCu Feb 19, 2025
3274da1
Merge pull request #29 from Arquisoft/Rama-Bruno
uo287983 Feb 19, 2025
e895c72
Merge branch 'master' into Rama-Bruno
BrunoPrzCu Feb 19, 2025
3b1b405
Merge pull request #30 from Arquisoft/Rama-Bruno
uo287983 Feb 19, 2025
fa21533
documentacion 11
adrianmahialoredo Feb 21, 2025
49cb8ff
documentacion 6
adrianmahialoredo Feb 23, 2025
3c3d020
cambios documentacion 11
adrianmahialoredo Feb 23, 2025
b8beeab
Merge branch 'master' into RamaMiguel
miguelgutierrezg Feb 24, 2025
cc49f03
Documentacion_AP_7
miguelgutierrezg Feb 24, 2025
601098e
Merge pull request #32 from Arquisoft/RamaMiguel
adrianmahialoredo Feb 24, 2025
cd917ae
Merge pull request #33 from Arquisoft/Rama-Adri
adrianmahialoredo Feb 25, 2025
87c38f3
Merge master into Rama-Andrés
uo287983 Feb 26, 2025
50dfd77
Basic game component structure, added questionservice module
BrunoPrzCu Feb 26, 2025
c3f27f7
Primer diseño página del juego y añadido un manejador de endpoints co…
uo287983 Feb 27, 2025
36a5e0e
Added more components for question service
BrunoPrzCu Mar 1, 2025
fd37972
Added question service to docker compose, documented the service on r…
BrunoPrzCu Mar 2, 2025
9eddb5c
Added service to gateway-service.js, fixed errors
BrunoPrzCu Mar 2, 2025
e118bd9
Merge pull request #37 from Arquisoft/Rama-Bruno
uo287983 Mar 2, 2025
eda1c1b
version 1 Home
adrianmahialoredo Mar 2, 2025
1ba8bb8
Cambios en el perfil de usuario
miguelgutierrezg Mar 4, 2025
9f43e73
cambio img
adrianmahialoredo Mar 4, 2025
47eee58
Merge branch 'master' into Rama-Andrés
uo287983 Mar 4, 2025
808de2f
Cambios merge Bruno y Andrés
uo287983 Mar 4, 2025
9bc0bb9
Añadida dependencia de cors
uo287983 Mar 4, 2025
cab04bb
Cambios en el archivo Game.js
uo287983 Mar 4, 2025
2e6d8c5
Primer prototipo de la pantalla del juego
uo287983 Mar 4, 2025
62a3760
Merge pull request #45 from Arquisoft/Rama-Andrés
BrunoPrzCu Mar 4, 2025
a636d25
Merge pull request #38 from Arquisoft/Rama-Adri
BrunoPrzCu Mar 4, 2025
a6b1623
Se han vinculado los componentes para acceder al juego desde el menú …
uo287983 Mar 4, 2025
c56f04e
Merge pull request #46 from Arquisoft/Rama-Andrés
miguelgutierrezg Mar 5, 2025
b576d2c
Arreglado un error por culpa del router en los test
uo287983 Mar 5, 2025
9c2da60
Arreglado un pequeño error de ruta
uo287983 Mar 5, 2025
adb6524
Merge pull request #47 from Arquisoft/Rama-Andrés
BrunoPrzCu Mar 5, 2025
da41ff4
Added new tests for coverage
BrunoPrzCu Mar 5, 2025
5551881
Merge pull request #48 from Arquisoft/Rama-Bruno
uo287983 Mar 6, 2025
e391bd9
Merge branch 'master' into RamaMiguel
miguelgutierrezg Mar 7, 2025
9b33f0d
Ventana de perfil primera instancia
miguelgutierrezg Mar 8, 2025
6c57d30
Adicion ranking
miguelgutierrezg Mar 8, 2025
798019c
Dependencia añadida
miguelgutierrezg Mar 9, 2025
a6a18f4
Dependencia2
miguelgutierrezg Mar 9, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 33 additions & 22 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,19 @@
name: CI for wichat_0
name: CI for wichat_es4c

on:
release:
types: [published]

workflow_dispatch:
inputs:
logLevel:
description: 'Log level'
required: true
default: 'warning'
type: choice
options:
- info
- warning
- debug
jobs:
unit-tests:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -56,7 +66,7 @@ jobs:
API_URI: http://${{ secrets.DEPLOY_HOST }}:8000
LLM_API_KEY: ${{ secrets.LLM_API_KEY }}
with:
name: arquisoft/wichat_0/webapp
name: arquisoft/wichat_es4c/webapp
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
registry: ghcr.io
Expand All @@ -76,7 +86,7 @@ jobs:
- name: Publish to Registry
uses: elgohr/Publish-Docker-Github-Action@v5
with:
name: arquisoft/wichat_0/authservice
name: arquisoft/wichat_es4c/authservice
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
registry: ghcr.io
Expand All @@ -95,7 +105,7 @@ jobs:
- name: Publish to Registry
uses: elgohr/Publish-Docker-Github-Action@v5
with:
name: arquisoft/wichat_0/userservice
name: arquisoft/wichat_es4c/userservice
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
registry: ghcr.io
Expand All @@ -113,7 +123,7 @@ jobs:
- name: Publish to Registry
uses: elgohr/Publish-Docker-Github-Action@v5
with:
name: arquisoft/wichat_0/llmservice
name: arquisoft/wichat_es4c/llmservice
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
registry: ghcr.io
Expand All @@ -135,23 +145,24 @@ jobs:
- name: Publish to Registry
uses: elgohr/Publish-Docker-Github-Action@v5
with:
name: arquisoft/wichat_0/gatewayservice
name: arquisoft/wichat_es4c/gatewayservice
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
registry: ghcr.io
workdir: gatewayservice
deploy:
name: Deploy over SSH
runs-on: ubuntu-latest
needs: [docker-push-userservice,docker-push-authservice,docker-push-llmservice,docker-push-gatewayservice,docker-push-webapp]
steps:
- name: Deploy over SSH
uses: fifsky/ssh-action@master
with:
host: ${{ secrets.DEPLOY_HOST }}
user: ${{ secrets.DEPLOY_USER }}
key: ${{ secrets.DEPLOY_KEY }}
command: |
wget https://raw.githubusercontent.com/arquisoft/wichat_0/master/docker-compose.yml -O docker-compose.yml
docker compose --profile prod down
docker compose --profile prod up -d --pull always
# deploy:
# name: Deploy over SSH
# runs-on: ubuntu-latest
# needs: [docker-push-userservice,docker-push-authservice,docker-push-llmservice,docker-push-gatewayservice,docker-push-webapp]
# steps:
# - name: Deploy over SSH
# uses: fifsky/ssh-action@master
# with:
# host: ${{ secrets.DEPLOY_HOST }}
# user: ${{ secrets.DEPLOY_USER }}
# key: ${{ secrets.DEPLOY_KEY }}
# command: |
# wget https://raw.githubusercontent.com/arquisoft/wichat_es4c/master/docker-compose.yml -O docker-compose.yml
# docker compose --profile prod down
# docker compose --profile prod up -d --pull always

2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ node_modules
coverage
docs/build
.env
webapp/.env
webapp/*.env
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# wichat_0
# wichat_es4c

[![Actions Status](https://github.com/arquisoft/wichat_0/workflows/CI%20for%20wichat_0/badge.svg)](https://github.com/arquisoft/wichat_0/actions)
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=Arquisoft_wichat_0&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=Arquisoft_wichat_0)
[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=Arquisoft_wichat_0&metric=coverage)](https://sonarcloud.io/summary/new_code?id=Arquisoft_wichat_0)
[![Actions Status](https://github.com/arquisoft/wichat_es4c/workflows/CI%20for%20wichat_es4c/badge.svg)](https://github.com/arquisoft/wichat_es4c/actions)
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=Arquisoft_wichat_es4c&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=Arquisoft_wichat_es4c)
[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=Arquisoft_wichat_es4c&metric=coverage)](https://sonarcloud.io/summary/new_code?id=Arquisoft_wichat_es4c)

<p float="left">
<img src="https://blog.wildix.com/wp-content/uploads/2020/06/react-logo.jpg" height="100">
Expand All @@ -23,7 +23,7 @@ Both the user and auth service share a Mongo database that is accessed with mong

First, clone the project:

```git clone [email protected]:arquisoft/wichat_0.git```
```git clone [email protected]:arquisoft/wichat_es4c.git```

### LLM API key configuration

Expand Down Expand Up @@ -55,7 +55,7 @@ First, start the database. Either install and run Mongo or run it using docker:

You can use also services like Mongo Altas for running a Mongo database in the cloud.

Now launch the auth, user and gateway services. Just go to each directory and run `npm install` followed by `npm start`.
Now launch the auth, user, question and gateway services. Just go to each directory and run `npm install` followed by `npm start`.

Lastly, go to the webapp directory and launch this component with `npm install` followed by `npm start`.

Expand Down Expand Up @@ -106,7 +106,7 @@ deploy:
user: ${{ secrets.DEPLOY_USER }}
key: ${{ secrets.DEPLOY_KEY }}
command: |
wget https://raw.githubusercontent.com/arquisoft/wichat_0/master/docker-compose.yml -O docker-compose.yml
wget https://raw.githubusercontent.com/arquisoft/wichat_es4c/master/docker-compose.yml -O docker-compose.yml
docker compose --profile prod down
docker compose --profile prod up -d --pull always
```
Expand Down
39 changes: 26 additions & 13 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
services:
mongodb:
container_name: mongodb-wichat_0
container_name: mongodb-wichat_es4c
image: mongo
profiles: ["dev", "prod"]
volumes:
Expand All @@ -11,8 +11,8 @@ services:
- mynetwork

authservice:
container_name: authservice-wichat_0
image: ghcr.io/arquisoft/wichat_0/authservice:latest
container_name: authservice-wichat_es4c
image: ghcr.io/arquisoft/wichat_es4c/authservice:latest
profiles: ["dev", "prod"]
build: ./users/authservice
depends_on:
Expand All @@ -25,8 +25,8 @@ services:
MONGODB_URI: mongodb://mongodb:27017/userdb

userservice:
container_name: userservice-wichat_0
image: ghcr.io/arquisoft/wichat_0/userservice:latest
container_name: userservice-wichat_es4c
image: ghcr.io/arquisoft/wichat_es4c/userservice:latest
profiles: ["dev", "prod"]
build: ./users/userservice
depends_on:
Expand All @@ -39,25 +39,37 @@ services:
MONGODB_URI: mongodb://mongodb:27017/userdb

llmservice:
container_name: llmservice-wichat_0
image: ghcr.io/arquisoft/wichat_0/llmservice:latest
container_name: llmservice-wichat_es4c
image: ghcr.io/arquisoft/wichat_es4c/llmservice:latest
profiles: ["dev", "prod"]
build: ./llmservice
ports:
- "8003:8003"
networks:
- mynetwork

questionservice:
container_name: questionservice-wichat_es4c
image: ghcr.io/arquisoft/wichat_es4c/questionservice:latest
profiles: ["dev", "prod"]
build: ./questionservice
ports:
- "8004:8004"
networks:
- mynetwork


gatewayservice:
container_name: gatewayservice-wichat_0
image: ghcr.io/arquisoft/wichat_0/gatewayservice:latest
container_name: gatewayservice-wichat_es4c
image: ghcr.io/arquisoft/wichat_es4c/gatewayservice:latest
profiles: ["dev", "prod"]
build: ./gatewayservice
depends_on:
- mongodb
- userservice
- authservice
- llmservice
- questionservice
ports:
- "8000:8000"
networks:
Expand All @@ -66,10 +78,11 @@ services:
AUTH_SERVICE_URL: http://authservice:8002
USER_SERVICE_URL: http://userservice:8001
LLM_SERVICE_URL: http://llmservice:8003
QUESTION_SERVICE_URL: http://questionservice:8004

webapp:
container_name: webapp-wichat_0
image: ghcr.io/arquisoft/wichat_0/webapp:latest
container_name: webapp-wichat_es4c
image: ghcr.io/arquisoft/wichat_es4c/webapp:latest
profiles: ["dev", "prod"]
build:
context: ./webapp
Expand All @@ -82,7 +95,7 @@ services:

prometheus:
image: prom/prometheus
container_name: prometheus-wichat_0
container_name: prometheus-wichat_es4c
profiles: ["dev"]
networks:
- mynetwork
Expand All @@ -96,7 +109,7 @@ services:

grafana:
image: grafana/grafana
container_name: grafana-wichat_0
container_name: grafana-wichat_es4c
profiles: ["dev"]
networks:
- mynetwork
Expand Down
4 changes: 2 additions & 2 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## The documentation
In this project, the documentation is compiled locally and deployed to GitHub pages.
The deployment url is: [https://arquisoft.github.io/wichat_0/](https://arquisoft.github.io/wichat_0/).
The deployment url is: [https://arquisoft.github.io/wichat_es4c/](https://arquisoft.github.io/wichat_es4c/).

### Documentation build
For the documentation, we are going to use [AsciiDoc](https://asciidoc.org/) and [PlantUML](https://plantuml.com) and follow the [Arc42](https://github.com/arc42/arc42-template) template. If you want to be able to generate the doc locally you need to install Ruby, Java and some dependencies to translate the AsciiDoc code into html. If you are in Linux you can install Ruby and Java simply by executing:
Expand Down Expand Up @@ -30,6 +30,6 @@ npm run build
The documentation will be generated under the `docs/build` directory.

### Documentation deployment
If we want to deploy it to GitHub pages, so it is accessible via [https://arquisoft.github.io/wichat_0/](https://arquisoft.github.io/wichat_0/), we need to execute `npm run deploy`.
If we want to deploy it to GitHub pages, so it is accessible via [https://arquisoft.github.io/wichat_es4c/](https://arquisoft.github.io/wichat_es4c/), we need to execute `npm run deploy`.

If you check the `package.json` in this directory you can see how deploying is as easy as executing `gh-pages -d build`, which can be directly executed using `npm run deploy` in the docs directory. The `gh-pages` package is in charge of pushing the documentation generated directory (basically some htmls) to a special github branch called gh-pages. Everything pushed to this branch is accessible on the repository page. Note that we only want to push there the documentation. Also is important that the documentation build is not pushed to the other branches of the project.
Binary file added docs/images/05_level1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/05_level2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/05_level3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/Deploy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions docs/images/Diagrama-despliegue.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions docs/images/modelo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// configure EN settings for asciidoc
include::src/config.adoc[]

= image:arc42-logo.png[arc42] wichat_0
= image:arc42-logo.png[arc42] wichat_es4c
:revnumber: 8.2 EN
:revdate: January 2023
:revremark: (based upon AsciiDoc version)
Expand Down
Loading