From 383e61a1abdcd0bd8a7825c127c24448f954953b Mon Sep 17 00:00:00 2001 From: Ruben Romero Date: Fri, 23 Feb 2024 15:01:52 +0100 Subject: [PATCH] Gcloud (parte grupal) y revision de API - rubromgui --- .gcloudignore | 17 +++++++++++++++++ README.md | 13 +++++++++++-- app.yaml | 1 + home/index.html | 34 ++++++++++++++++++++++++++++++++++ index.js | 5 +---- 5 files changed, 64 insertions(+), 6 deletions(-) create mode 100644 .gcloudignore create mode 100644 app.yaml create mode 100644 home/index.html diff --git a/.gcloudignore b/.gcloudignore new file mode 100644 index 0000000..4d7d693 --- /dev/null +++ b/.gcloudignore @@ -0,0 +1,17 @@ +# This file specifies files that are *not* uploaded to Google Cloud +# using gcloud. It follows the same syntax as .gitignore, with the addition of +# "#!include" directives (which insert the entries of the given .gitignore-style +# file at that point). +# +# For more information, run: +# $ gcloud topic gcloudignore +# +.gcloudignore +# If you would like to upload your .git directory, .gitignore file or files +# from your .gitignore file, remove the corresponding line +# below: +.git +.gitignore + +# Node.js dependencies: +node_modules/ \ No newline at end of file diff --git a/README.md b/README.md index 400288d..ddba0ac 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,12 @@ # SOS2324-13 - -Version inicial \ No newline at end of file +- **Team** + - [Aaron López Leal](https://github.com/aaronlopezleal) + - [Rubén Romero Guisado](https://github.com/rubromgui) + - [Antonio López Barrios](https://github.com/antlopbar) +- **Project description**: Our information sources are aimed at analyzing if there is a relationship between the risk of natural disasters by country, salaries and the most common mental problems. +- **Repository**: [gti-sos/SOS2324-13](https://github.com/gti-sos/SOS2324-13) +- **URL**: TBD +- **APIs**: + - RRG: https://sos2324-13.ew.r.appspot.com/samples/RRG + - TBD + - TBD \ No newline at end of file diff --git a/app.yaml b/app.yaml new file mode 100644 index 0000000..b413a18 --- /dev/null +++ b/app.yaml @@ -0,0 +1 @@ +runtime: nodejs18 \ No newline at end of file diff --git a/home/index.html b/home/index.html new file mode 100644 index 0000000..3a72a93 --- /dev/null +++ b/home/index.html @@ -0,0 +1,34 @@ + + +

SOS2324-13

+

Team

+

+ Aaron López Leal +
+ Rubén Romero Guisado +
+ Antonio López Barrios +

+ +

Project description

+

+ Our information sources are aimed at analyzing if there is a relationship between the risk of natural disasters by country, salaries and the most common mental problems. +

+

Repository

+

+ gti-sos/SOS2324-13 +

+ +

URL

+

TBD

+ +

APIs

+

+ - RRG: https://sos2324-13.ew.r.appspot.com/samples/RRG +
+ - TBD: +
+ - TBD: +

+ + \ No newline at end of file diff --git a/index.js b/index.js index f6e31f5..646f490 100644 --- a/index.js +++ b/index.js @@ -8,7 +8,6 @@ let rubromguiAPI = require("./samples/RRG"); let app = express(); app.use(bodyParser.json()); -app.use("/", express.static("./public")); // Esto va dentro de cada api personal: vaconst API_BASE = "/samples"; //Llamada a APIs de los integrantes del grupo @@ -22,9 +21,7 @@ app.listen(PORT); console.log(`Server listening on port ${PORT}.`); // Ruta raíz "/" -app.get("/", (req,res)=>{ - res.send("

Proyecto SOS2324-13

"); -}); +app.use("/", express.static("./home")); // Ruta "/cool" app.get("/cool", (req,res)=>{