Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
uo289792 committed Apr 28, 2024
2 parents 0fbd431 + 7ce09fc commit 6f70b7b
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 9 deletions.
34 changes: 34 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,33 @@ This repo is a basic application composed of several components.
- **User service**. Express service that handles the insertion of new users in the system.
- **Auth service**. Express service that handles the authentication of users.
- **Webapp**. React web application that uses the gateway service to allow basic login and new user features.
- **History service**. A new Express service handling users' game history.
- **Ranking service**. Another new Express service managing user ranking based on their game statistics.
- **Question and User APIs**. Additional services providing APIs for managing questions and users, respectively.

Both the user and auth service share a Mongo database that is accessed with mongoose.

## User Guide

### For Normal Users
As a normal user, you can use the web application to access basic features such as:

- Logging in to your account
- Registering a new account
- Accessing the game and playing
- Viewing your game history
- Viewing the ranking

### For Administrators

As an administrator, you have access to additional features, including:

- Access to the APIs for managing questions and users
- Ability to view user accounts
- Ability to view game statistics and the ranking

Please note that administrators do not have access to play the game from registration to gameplay and its functionalities.

## Quick start guide

### Using docker
Expand Down Expand Up @@ -112,3 +136,13 @@ This action uses three secrets that must be configured in the repository:
- DEPLOY_KEY: key to authenticate the user in the remote machine.
Note that this action logs in the remote machine and downloads the docker-compose file from the repository and launches it. Obviously, previous actions have been executed which have uploaded the docker images to the GitHub Packages repository.
## Development Team
| 📚 UO | 🧑‍💻 Name | 📧 Email |
| :---: | :---: | :---: |
| UO289792 | David Muñoz Río | [[email protected]](mailto:[email protected]) |
| UO289337 | Rubén Pérez Dafonte | [[email protected]](mailto:[email protected]) |
| UO288559 | Marina Seijo | [[email protected]](mailto:[email protected]) |
| UO284342 | Ángela Roza | [[email protected]](mailto:[email protected]) |
5 changes: 1 addition & 4 deletions gatewayservice/monitoring/grafana/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,4 @@ RUN chown -R nonroot:nonroot ./

COPY provisioning ./provisioning

USER nonroot

# Expose the port that Grafana server listens on
EXPOSE 9191
USER nonroot
5 changes: 1 addition & 4 deletions gatewayservice/monitoring/prometheus/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,4 @@ RUN chown -R nonroot:nonroot ./

COPY prometheus.yml ./

USER nonroot

# Expose the port that Prometheus server listens on
EXPOSE 9090
USER nonroot
2 changes: 1 addition & 1 deletion gatewayservice/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ info:
servers:
- url: http://localhost:8000
description: Development server
- url: http://$REACT_APP_API_ORIGIN_ENDPOINT:8000
- url: http://${REACT_APP_API_ORIGIN_ENDPOINT}:8000
description: Production server
paths:
/adduser:
Expand Down

0 comments on commit 6f70b7b

Please sign in to comment.