Skip to content

Commit

Permalink
Merge pull request #43 from Arquisoft/PruebaConjunto
Browse files Browse the repository at this point in the history
Prueba conjunto
  • Loading branch information
lauracc97 committed Apr 7, 2024
2 parents 2709a99 + cdbbf49 commit a0dc684
Show file tree
Hide file tree
Showing 21 changed files with 25,695 additions and 25,017 deletions.
16 changes: 0 additions & 16 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,6 @@ services:
networks:
- mynetwork

wikidata:
container_name: wikidata-${teamname:-defaultASW}
image: ghcr.io/arquisoft/wiq_es2a/query-questions:latest
profiles: ["dev", "prod"]
build: ./questions/query-questions
depends_on:
- mongodb
ports:
- "8003:8003"
networks:
- mynetwork
environment:
MONGODB_URI: mongodb://mongodb:27017/userdb

questionservice:
container_name: questionservice-${teamname:-defaultASW}
image: ghcr.io/arquisoft/wiq_es2a/questionservice:latest
Expand Down Expand Up @@ -76,15 +62,13 @@ services:
- mongodb
- userservice
- authservice
- wikidata
- questionservice
ports:
- "8000:8000"
networks:
- mynetwork
environment:
QUESTIONS_SERVICE_URL: http://questionservice:8004
WIKIDATA_SERVICE_URL: http://wikidata:8003
AUTH_SERVICE_URL: http://authservice:8002
USER_SERVICE_URL: http://userservice:8001

Expand Down
13 changes: 0 additions & 13 deletions gatewayservice/gateway-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ app.post('/adduser', async (req, res) => {

app.post('/questions', async (req, res) => {
try {
console.log("pasando por el gateway por /questions");
// Forward the add user request to the user service
const userResponse = await axios.post(questServiceUrl+'/questions', req.body);
res.json(userResponse.data);
Expand All @@ -54,18 +53,6 @@ app.post('/questions', async (req, res) => {
}
});

app.post('/randomQuest', async (req, res) => {

try {
//console.log("hola");
// Forward the add user request to the user service
const response = await axios.post(questRandServiceUrl+'/randomQuest', req.body);
res.json(response.data);
} catch (error) {
res.status(error.response.status).json({ error: error.response.data.error });
}
});

// Start the gateway service
const server = app.listen(port, () => {
console.log(`Gateway Service listening at http://localhost:${port}`);
Expand Down
20 changes: 0 additions & 20 deletions questions/query-questions/Dockerfile

This file was deleted.

Loading

0 comments on commit a0dc684

Please sign in to comment.