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

Prueba conjunto #43

Merged
merged 22 commits into from
Apr 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
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
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
Loading