From 290342cef0e6fbb98d8c145f1e301b1875ca069e Mon Sep 17 00:00:00 2001 From: Lucas Winkler <94091522+LucasMERN@users.noreply.github.com> Date: Thu, 16 Jun 2022 20:13:02 -0500 Subject: [PATCH 01/10] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 7cadc5a..4179110 100644 --- a/README.md +++ b/README.md @@ -129,6 +129,7 @@ Distributed under the MIT License. See (back to top)

From 0c91decf7c87aa853431c5c14cee6c789312df19 Mon Sep 17 00:00:00 2001 From: Lucas Winkler <94091522+LucasMERN@users.noreply.github.com> Date: Thu, 16 Jun 2022 20:13:54 -0500 Subject: [PATCH 02/10] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4179110..591c53f 100644 --- a/README.md +++ b/README.md @@ -129,7 +129,7 @@ Distributed under the MIT License. See (back to top)

From 04c8d6c9977359e941191b67468ef61aaec9cdad Mon Sep 17 00:00:00 2001 From: Jacob Asper Date: Sat, 18 Jun 2022 15:39:15 -0400 Subject: [PATCH 03/10] Updated Roadmap --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 591c53f..26f5c6f 100644 --- a/README.md +++ b/README.md @@ -91,7 +91,7 @@ Access our API endpoints to recieve coding resource data in JSON format. - [X] Add search functionality - [ ] Offer more resources -- [ ] Support mobile devices +- [X] Support mobile devices - [ ] Create more endpoints See the [open issues](https://github.com/the-api-administration/coding-resources-api/issues) for a full list of proposed features (and known issues). From c294e066376496c9b39ae2bfb255b4f6e2006d19 Mon Sep 17 00:00:00 2001 From: Jacob Asper Date: Sat, 18 Jun 2022 15:59:25 -0400 Subject: [PATCH 04/10] added table of contents --- CONTRIBUTING.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index b453829..ebaed3b 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -6,7 +6,16 @@ Contributions are what make the open source community such an amazing place to l Please make sure to follow our guidelines below before making any contributions. - +- [Contributing](#contributing) + - [Understanding Coding-Resources-API branch structure](#understanding-coding-resources-api-branch-structure) + - [Permanent Branches](#permanent-branches) + - [Main](#main) + - [Test](#test) + - [Resources](#resources) + - [How often should I stage changes?](#how-often-should-i-stage-changes) + - [Where should I make my pull request to?](#where-should-i-make-my-pull-request-to) + - [Creating an Issue](#creating-an-issue) + - [How to make a PR](#how-to-make-a-pr) ## Understanding Coding-Resources-API branch structure ### Permanent Branches From 40a4f99e14c1aa9d08efb3bc4b96093230d1c4a2 Mon Sep 17 00:00:00 2001 From: brianschnee Date: Thu, 14 Jul 2022 21:55:55 -0400 Subject: [PATCH 05/10] removed redundant app.use --- server.js | 1 - 1 file changed, 1 deletion(-) diff --git a/server.js b/server.js index f36fcae..b345898 100644 --- a/server.js +++ b/server.js @@ -7,7 +7,6 @@ const PORT = process.env.PORT || 8000; app.set('view engine', 'ejs') app.use(cors()); app.use(express.static(__dirname + '/public')); -app.use('/public', express.static(__dirname + '/public')); app.get('/', (req, res) => { if (resources) { From f778159dbf2affbb68d2a56f232531e045ae3420 Mon Sep 17 00:00:00 2001 From: brianschnee Date: Thu, 14 Jul 2022 21:58:52 -0400 Subject: [PATCH 06/10] changed paths in index.ejs --- views/index.ejs | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/views/index.ejs b/views/index.ejs index e5cce06..3bef6e1 100644 --- a/views/index.ejs +++ b/views/index.ejs @@ -26,7 +26,7 @@
@@ -124,7 +124,7 @@
- Jacob's photo + Jacob's photo

Jacob Asper

@@ -135,7 +135,7 @@
- Erika's photo + Erika's photo

Erika Teal

@@ -146,7 +146,7 @@
- Alexis' photo + Alexis' photo

Alexisintech

@@ -159,7 +159,7 @@
- Brian's photo + Brian's photo

Brian Schnee

@@ -170,7 +170,7 @@
- Alondra's photo + Alondra's photo

Alondra Mora

@@ -181,7 +181,7 @@
- Biancas's photo + Biancas's photo

Bianca T.

@@ -192,7 +192,7 @@
- Jacob Good's photo + Jacob Good's photo

Jacob Good

@@ -205,7 +205,7 @@
- Sebastian's photo + Sebastian's photo

Sebastian O.

@@ -216,7 +216,7 @@
- Alyssha's photo + Alyssha's photo

Alyssha L.

@@ -227,7 +227,7 @@
- Dana's photo + Dana's photo

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.

(back to top)

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.

(back to top)

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 @@

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))