-
+
+
Jacob Asper
@@ -135,7 +135,7 @@
-
+
+
Erika Teal
@@ -146,7 +146,7 @@
-
+
+
Alexisintech
@@ -159,7 +159,7 @@
-
+
+
Brian Schnee
@@ -170,7 +170,7 @@
-
+
+
Alondra Mora
@@ -181,7 +181,7 @@
-
+
+
Bianca T.
@@ -192,7 +192,7 @@
-
+
+
Jacob Good
@@ -205,7 +205,7 @@
-
+
+
Sebastian O.
@@ -216,7 +216,7 @@
-
+
+
Alyssha L.
@@ -227,7 +227,7 @@
-
+
+
Dana Lee
From e4f6351db22a0c9cf510f1aa2d5938c853cafc1e Mon Sep 17 00:00:00 2001
From: brianschnee
Date: Thu, 14 Jul 2022 22:01:16 -0400
Subject: [PATCH 07/10] set up public folder
---
server.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/server.js b/server.js
index b345898..5340443 100644
--- a/server.js
+++ b/server.js
@@ -6,7 +6,7 @@ const PORT = process.env.PORT || 8000;
app.set('view engine', 'ejs')
app.use(cors());
-app.use(express.static(__dirname + '/public'));
+app.use(express.static('public'));
app.get('/', (req, res) => {
if (resources) {
From 6f195f222ff91810b166e2217604928c2bf81f9e Mon Sep 17 00:00:00 2001
From: Jacob Asper
Date: Tue, 2 Aug 2022 22:23:13 -0400
Subject: [PATCH 08/10] Fix typo
changed recieve to receive
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 26f5c6f..ff8c288 100644
--- a/README.md
+++ b/README.md
@@ -81,7 +81,7 @@ Simply visit: https://codi
## Usage
-Access our API endpoints to recieve coding resource data in JSON format.
+Access our API endpoints to receive coding resource data in JSON format.
From ec4c9d26dee1ff495a6ff381543507f2661319b9 Mon Sep 17 00:00:00 2001
From: Jacob Asper
Date: Thu, 22 Sep 2022 13:36:17 -0400
Subject: [PATCH 09/10] update site link to railway
change the heroku links out for the railway links
---
README.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
index ff8c288..7e44e8f 100644
--- a/README.md
+++ b/README.md
@@ -24,7 +24,7 @@
Explore the docs »
- View Demo + View Demo · Report Bug · @@ -73,7 +73,7 @@ Search for coding resources by relevant keywords. This API serves educational co ## Getting Started -Simply visit: https://coding-resources-api.herokuapp.com/ and read our documentation to learn how to interact with our API! If you would like to help us out, feel free to create issues through our github repo. +Simply visit: https://coding-resources-api.up.railway.app/ and read our documentation to learn how to interact with our API! If you would like to help us out, feel free to create issues through our github repo. From 0ebb400936373fc5058280dcd824f693f6961873 Mon Sep 17 00:00:00 2001 From: Dom Foley
Date: Mon, 16 Jan 2023 12:46:44 -0500
Subject: [PATCH 10/10] Update example links in frontend
Change Heroku links to railway.
---
views/index.ejs | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/views/index.ejs b/views/index.ejs
index 3bef6e1..48003a8 100644
--- a/views/index.ejs
+++ b/views/index.ejs
@@ -105,14 +105,14 @@
- View Demo + View Demo · Report Bug · @@ -73,7 +73,7 @@ Search for coding resources by relevant keywords. This API serves educational co ## Getting Started -Simply visit: https://coding-resources-api.herokuapp.com/ and read our documentation to learn how to interact with our API! If you would like to help us out, feel free to create issues through our github repo. +Simply visit: https://coding-resources-api.up.railway.app/ and read our documentation to learn how to interact with our API! If you would like to help us out, feel free to create issues through our github repo. From 0ebb400936373fc5058280dcd824f693f6961873 Mon Sep 17 00:00:00 2001 From: Dom Foley
Direct link to the complete resources object or a filtered object after using a keyword:
-https://coding-resources-api.herokuapp.com/api
+ https://coding-resources-api.up.railway.app/api
*The "/api" endpoint will return every resource object in an array.
-https://coding-resources-api.herokuapp.com/api/<keyword>
+ https://coding-resources-api.up.railway.app/api/<keyword>
*The "/api/keyword" endpoint accepts a keyword that will be used to search through an array of resources by the content the resource provides.
Example code-block of how to fetch with JavaScript:
-const URL = `https://coding-resources-api.herokuapp.com/api/${keyword}`;
+ const URL = `https://coding-resources-api.railway.com/api/${keyword}`;
fetch(URL)
.then(res => res.json())
.then(data => console.log(data))