Author SHA1 Message Date
Stevan Freeborn 75e36c43fc Update production_criminalmindsapi.yml 2024-10-29 11:05:28 -05:00
Stevan Freeborn 25dbcc6b76 Merge pull request #46 from StevanFreeborn/dependabot/npm_and_yarn/client/multi-9f37c16f8f
Bump cookie and express in /client
2024-10-29 10:45:59 -05:00
dependabot[bot] 966a4da981 Bump cookie and express in /client
Bumps [cookie](https://github.com/jshttp/cookie) and [express](https://github.com/expressjs/express). These dependencies needed to be updated together.

Updates `cookie` from 0.6.0 to 0.7.1
- [Release notes](https://github.com/jshttp/cookie/releases)
- [Commits](https://github.com/jshttp/cookie/compare/v0.6.0...v0.7.1)

Updates `express` from 4.21.0 to 4.21.1
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/4.21.1/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.21.0...4.21.1)

---
updated-dependencies:
- dependency-name: cookie
  dependency-type: indirect
- dependency-name: express
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-29 15:43:26 +00:00
Stevan Freeborn b27884ccab Merge pull request #45 from StevanFreeborn/dependabot/npm_and_yarn/client/http-proxy-middleware-2.0.7
Bump http-proxy-middleware from 2.0.6 to 2.0.7 in /client
2024-10-29 10:41:24 -05:00
dependabot[bot] 9c152b6c8e Bump http-proxy-middleware from 2.0.6 to 2.0.7 in /client
Bumps [http-proxy-middleware](https://github.com/chimurai/http-proxy-middleware) from 2.0.6 to 2.0.7.
- [Release notes](https://github.com/chimurai/http-proxy-middleware/releases)
- [Changelog](https://github.com/chimurai/http-proxy-middleware/blob/v2.0.7/CHANGELOG.md)
- [Commits](https://github.com/chimurai/http-proxy-middleware/compare/v2.0.6...v2.0.7)

---
updated-dependencies:
- dependency-name: http-proxy-middleware
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-29 15:15:34 +00:00
Stevan Freeborn 197f37d03a chore: update workflow 2024-10-01 21:07:51 -05:00
Stevan Freeborn 2100770780 chore: update workflow 2024-10-01 21:02:30 -05:00
Stevan Freeborn 5d624b25d3 chore: update workflow 2024-10-01 20:58:44 -05:00
Stevan Freeborn 7c80a7413c chore: update workflow 2024-10-01 20:55:38 -05:00
Stevan Freeborn a228799092 chore: update workflow 2024-10-01 20:54:20 -05:00
Stevan Freeborn 3c58de0c49 chore: update workflow 2024-10-01 20:53:08 -05:00
Stevan Freeborn 1d3c6bc7a6 Merge pull request #43 from StevanFreeborn/stevanfreeborn/chore/upgrade-to-dotnet-8
chore: update to dotnet 8
2024-10-01 20:51:06 -05:00
Stevan Freeborn 57d836797d chore: update to dotnet 8 2024-10-01 20:50:03 -05:00
Stevan Freeborn b9c84dc189 Merge pull request #42 from StevanFreeborn/dependabot/npm_and_yarn/client/rollup-2.79.2
Bump rollup from 2.75.6 to 2.79.2 in /client
2024-09-30 12:59:24 -05:00
dependabot[bot] 70808a0919 Bump rollup from 2.75.6 to 2.79.2 in /client
Bumps [rollup](https://github.com/rollup/rollup) from 2.75.6 to 2.79.2.
- [Release notes](https://github.com/rollup/rollup/releases)
- [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rollup/rollup/compare/v2.75.6...v2.79.2)

---
updated-dependencies:
- dependency-name: rollup
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-30 17:57:00 +00:00
Stevan Freeborn 5ceac2150b Merge pull request #40 from StevanFreeborn/dependabot/npm_and_yarn/client/multi-9423f4c335
Bump body-parser and express in /client
2024-09-26 12:01:56 -05:00
dependabot[bot] 5ad4c7e238 Bump body-parser and express in /client
Bumps [body-parser](https://github.com/expressjs/body-parser) and [express](https://github.com/expressjs/express). These dependencies needed to be updated together.

Updates `body-parser` from 1.20.2 to 1.20.3
- [Release notes](https://github.com/expressjs/body-parser/releases)
- [Changelog](https://github.com/expressjs/body-parser/blob/master/HISTORY.md)
- [Commits](https://github.com/expressjs/body-parser/compare/1.20.2...1.20.3)

Updates `express` from 4.19.2 to 4.21.0
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/4.21.0/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.19.2...4.21.0)

---
updated-dependencies:
- dependency-name: body-parser
  dependency-type: indirect
- dependency-name: express
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-26 16:28:43 +00:00
Stevan Freeborn 3f8b8a110b Merge pull request #39 from StevanFreeborn/dependabot/github_actions/dot-github/workflows/actions/download-artifact-4.1.7
Bump actions/download-artifact from 3 to 4.1.7 in /.github/workflows
2024-09-04 08:53:18 -05:00
dependabot[bot] 75dd533871 Bump actions/download-artifact from 3 to 4.1.7 in /.github/workflows
Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 3 to 4.1.7.
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](https://github.com/actions/download-artifact/compare/v3...v4.1.7)

---
updated-dependencies:
- dependency-name: actions/download-artifact
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-04 13:52:10 +00:00
Stevan Freeborn b1e24d3607 Merge pull request #38 from StevanFreeborn/dependabot/npm_and_yarn/client/express-4.19.2
Bump express from 4.18.1 to 4.19.2 in /client
2024-06-21 12:41:53 -05:00
Stevan Freeborn baae1a1d14 Merge pull request #37 from StevanFreeborn/dependabot/npm_and_yarn/client/braces-3.0.3
Bump braces from 3.0.2 to 3.0.3 in /client
2024-06-21 12:41:46 -05:00
dependabot[bot] c017347fab Bump express from 4.18.1 to 4.19.2 in /client
Bumps [express](https://github.com/expressjs/express) from 4.18.1 to 4.19.2.
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/master/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.18.1...4.19.2)

---
updated-dependencies:
- dependency-name: express
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-21 17:41:34 +00:00
dependabot[bot] 97611366e7 Bump braces from 3.0.2 to 3.0.3 in /client
Bumps [braces](https://github.com/micromatch/braces) from 3.0.2 to 3.0.3.
- [Changelog](https://github.com/micromatch/braces/blob/master/CHANGELOG.md)
- [Commits](https://github.com/micromatch/braces/compare/3.0.2...3.0.3)

---
updated-dependencies:
- dependency-name: braces
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-21 17:41:23 +00:00
Stevan Freeborn fe5d6a1e6b Merge pull request #36 from StevanFreeborn/dependabot/npm_and_yarn/client/ejs-3.1.10
Bump ejs from 3.1.8 to 3.1.10 in /client
2024-06-21 12:41:12 -05:00
Stevan Freeborn c1ed670bb9 Merge pull request #35 from StevanFreeborn/dependabot/npm_and_yarn/client/follow-redirects-1.15.6
Bump follow-redirects from 1.15.1 to 1.15.6 in /client
2024-06-21 12:41:05 -05:00
dependabot[bot] 2ac80beb99 Bump ejs from 3.1.8 to 3.1.10 in /client
Bumps [ejs](https://github.com/mde/ejs) from 3.1.8 to 3.1.10.
- [Release notes](https://github.com/mde/ejs/releases)
- [Commits](https://github.com/mde/ejs/compare/v3.1.8...v3.1.10)

---
updated-dependencies:
- dependency-name: ejs
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-21 17:40:59 +00:00
Stevan Freeborn cbe3c2dddf Merge pull request #34 from StevanFreeborn/dependabot/npm_and_yarn/client/word-wrap-1.2.5
Bump word-wrap from 1.2.3 to 1.2.5 in /client
2024-06-21 12:40:58 -05:00
Stevan Freeborn 89dc8e68da Merge pull request #33 from StevanFreeborn/dependabot/npm_and_yarn/client/semver-6.3.1
Bump semver from 6.3.0 to 6.3.1 in /client
2024-06-21 12:40:51 -05:00
Stevan Freeborn b1eb5c1434 Merge pull request #32 from StevanFreeborn/dependabot/npm_and_yarn/client/tough-cookie-4.1.4
Bump tough-cookie from 4.0.0 to 4.1.4 in /client
2024-06-21 12:40:44 -05:00
dependabot[bot] bad3baa5f3 Bump follow-redirects from 1.15.1 to 1.15.6 in /client
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.15.1 to 1.15.6.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.15.1...v1.15.6)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-21 17:40:09 +00:00
dependabot[bot] 90ed9f4405 Bump word-wrap from 1.2.3 to 1.2.5 in /client
Bumps [word-wrap](https://github.com/jonschlinkert/word-wrap) from 1.2.3 to 1.2.5.
- [Release notes](https://github.com/jonschlinkert/word-wrap/releases)
- [Commits](https://github.com/jonschlinkert/word-wrap/compare/1.2.3...1.2.5)

---
updated-dependencies:
- dependency-name: word-wrap
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-21 17:39:51 +00:00
dependabot[bot] db3a5a6ccd Bump semver from 6.3.0 to 6.3.1 in /client
Bumps [semver](https://github.com/npm/node-semver) from 6.3.0 to 6.3.1.
- [Release notes](https://github.com/npm/node-semver/releases)
- [Changelog](https://github.com/npm/node-semver/blob/v6.3.1/CHANGELOG.md)
- [Commits](https://github.com/npm/node-semver/compare/v6.3.0...v6.3.1)

---
updated-dependencies:
- dependency-name: semver
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-21 17:39:39 +00:00
dependabot[bot] bb92aa4f47 Bump tough-cookie from 4.0.0 to 4.1.4 in /client
Bumps [tough-cookie](https://github.com/salesforce/tough-cookie) from 4.0.0 to 4.1.4.
- [Release notes](https://github.com/salesforce/tough-cookie/releases)
- [Changelog](https://github.com/salesforce/tough-cookie/blob/master/CHANGELOG.md)
- [Commits](https://github.com/salesforce/tough-cookie/compare/v4.0.0...v4.1.4)

---
updated-dependencies:
- dependency-name: tough-cookie
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-21 17:39:30 +00:00
Stevan Freeborn e22fc3fb1b Update production_criminalmindsapi.yml 2024-03-25 10:19:59 -05:00
Stevan Freeborn 83bdc6d108 Update production_criminalmindsapi.yml 2024-03-25 10:19:21 -05:00
Stevan Freeborn 7a7807efe4 Update production_criminalmindsapi.yml 2024-03-25 10:15:30 -05:00
Stevan Freeborn cd6c263511 Merge pull request #29 from StevanFreeborn/production
Production
2024-03-25 10:03:37 -05:00
Stevan Freeborn dd1dccd452 Add or update the Azure App Service build and deployment workflow config 2024-03-25 10:00:52 -05:00
Stevan Freeborn a279f75a49 Merge pull request #28 from StevanFreeborn/master
chore: deploy to production
2024-03-25 09:56:36 -05:00
Stevan Freeborn 8103e82868 Merge pull request #27 from StevanFreeborn/dependabot/npm_and_yarn/client/webpack-dev-middleware-5.3.4
Bump webpack-dev-middleware from 5.3.3 to 5.3.4 in /client
2024-03-25 09:39:55 -05:00
dependabot[bot] 0068339471 Bump webpack-dev-middleware from 5.3.3 to 5.3.4 in /client
Bumps [webpack-dev-middleware](https://github.com/webpack/webpack-dev-middleware) from 5.3.3 to 5.3.4.
- [Release notes](https://github.com/webpack/webpack-dev-middleware/releases)
- [Changelog](https://github.com/webpack/webpack-dev-middleware/blob/v5.3.4/CHANGELOG.md)
- [Commits](https://github.com/webpack/webpack-dev-middleware/compare/v5.3.3...v5.3.4)

---
updated-dependencies:
- dependency-name: webpack-dev-middleware
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-25 14:39:01 +00:00
Stevan Freeborn 9775ff5bd5 Merge pull request #26 from StevanFreeborn/dependabot/npm_and_yarn/client/babel/traverse-7.23.2
Bump @babel/traverse from 7.18.5 to 7.23.2 in /client
2023-10-21 12:50:20 -05:00
dependabot[bot] 5fb65e7614 Bump @babel/traverse from 7.18.5 to 7.23.2 in /client
Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.18.5 to 7.23.2.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse)

---
updated-dependencies:
- dependency-name: "@babel/traverse"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-21 17:50:10 +00:00
Stevan Freeborn b384db6cf4 Merge pull request #25 from StevanFreeborn/dependabot/npm_and_yarn/client/webpack-5.76.1
Bump webpack from 5.73.0 to 5.76.1 in /client
2023-03-15 12:31:51 -05:00
dependabot[bot] d5a92c8c7a Bump webpack from 5.73.0 to 5.76.1 in /client
Bumps [webpack](https://github.com/webpack/webpack) from 5.73.0 to 5.76.1.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.73.0...v5.76.1)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-15 16:24:43 +00:00
Stevan Freeborn 591538d2f1 Merge pull request #24 from StevanFreeborn/dependabot/nuget/server/MongoDB.Driver-2.19.0
Bump MongoDB.Driver from 2.16.0 to 2.19.0 in /server
2023-03-04 00:19:42 -06:00
dependabot[bot] 704c5f0d4c Bump MongoDB.Driver from 2.16.0 to 2.19.0 in /server
Bumps [MongoDB.Driver](https://github.com/mongodb/mongo-csharp-driver) from 2.16.0 to 2.19.0.
- [Release notes](https://github.com/mongodb/mongo-csharp-driver/releases)
- [Commits](https://github.com/mongodb/mongo-csharp-driver/compare/v2.16.0...v2.19.0)

---
updated-dependencies:
- dependency-name: MongoDB.Driver
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-04 06:10:28 +00:00
Stevan Freeborn 277b4da05f Merge pull request #23 from StevanFreeborn/dependabot/npm_and_yarn/client/decode-uri-component-0.2.2
Bump decode-uri-component from 0.2.0 to 0.2.2 in /client
2023-01-13 13:15:24 -06:00
dependabot[bot] 60f4d20e96 Bump decode-uri-component from 0.2.0 to 0.2.2 in /client
Bumps [decode-uri-component](https://github.com/SamVerschueren/decode-uri-component) from 0.2.0 to 0.2.2.
- [Release notes](https://github.com/SamVerschueren/decode-uri-component/releases)
- [Commits](https://github.com/SamVerschueren/decode-uri-component/compare/v0.2.0...v0.2.2)

---
updated-dependencies:
- dependency-name: decode-uri-component
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-13 19:15:00 +00:00
Stevan Freeborn 666abb3120 Merge pull request #22 from StevanFreeborn/dependabot/npm_and_yarn/client/json5-1.0.2
Bump json5 from 1.0.1 to 1.0.2 in /client
2023-01-13 13:13:53 -06:00
dependabot[bot] a37ee671bf Bump json5 from 1.0.1 to 1.0.2 in /client
Bumps [json5](https://github.com/json5/json5) from 1.0.1 to 1.0.2.
- [Release notes](https://github.com/json5/json5/releases)
- [Changelog](https://github.com/json5/json5/blob/main/CHANGELOG.md)
- [Commits](https://github.com/json5/json5/compare/v1.0.1...v1.0.2)

---
updated-dependencies:
- dependency-name: json5
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-13 19:13:35 +00:00
Stevan Freeborn 668644ee4e Merge pull request #21 from StevanFreeborn/master
Deploy master to production.
2022-11-13 12:57:00 -06:00
StevanFreeborn eb517ae414 fix: added dependencies and dev dependences for minimatch and loader-utils at or beyond patched versions. 2022-11-13 12:56:13 -06:00
Stevan Freeborn 1a2db9af67 Merge pull request #20 from StevanFreeborn/dependabot/npm_and_yarn/client/loader-utils-2.0.4
Bump loader-utils from 2.0.2 to 2.0.4 in /client
2022-11-13 12:50:02 -06:00
dependabot[bot] fcf5edf2dd Bump loader-utils from 2.0.2 to 2.0.4 in /client
Bumps [loader-utils](https://github.com/webpack/loader-utils) from 2.0.2 to 2.0.4.
- [Release notes](https://github.com/webpack/loader-utils/releases)
- [Changelog](https://github.com/webpack/loader-utils/blob/v2.0.4/CHANGELOG.md)
- [Commits](https://github.com/webpack/loader-utils/compare/v2.0.2...v2.0.4)

---
updated-dependencies:
- dependency-name: loader-utils
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-13 18:48:54 +00:00
Stevan Freeborn 841e0600fd Merge pull request #19 from StevanFreeborn/dependabot/npm_and_yarn/client/minimatch-and-recursive-readdir-3.1.2
Bump minimatch and recursive-readdir in /client
2022-11-13 12:47:20 -06:00
dependabot[bot] 5626a13a63 Bump minimatch and recursive-readdir in /client
Bumps [minimatch](https://github.com/isaacs/minimatch) and [recursive-readdir](https://github.com/jergason/recursive-readdir). These dependencies needed to be updated together.

Updates `minimatch` from 3.0.4 to 3.1.2
- [Release notes](https://github.com/isaacs/minimatch/releases)
- [Commits](https://github.com/isaacs/minimatch/compare/v3.0.4...v3.1.2)

Updates `recursive-readdir` from 2.2.2 to 2.2.3
- [Release notes](https://github.com/jergason/recursive-readdir/releases)
- [Changelog](https://github.com/jergason/recursive-readdir/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jergason/recursive-readdir/commits/v2.2.3)

---
updated-dependencies:
- dependency-name: minimatch
  dependency-type: indirect
- dependency-name: recursive-readdir
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-13 18:46:17 +00:00
StevanFreeborn 41fdb77be3 Merge pull request #18 from StevanFreeborn/master
Deploy to production
2022-07-28 14:38:22 -05:00
StevanFreeborn aca67f852d Merge pull request #17 from StevanFreeborn/master
Deploy master to production
2022-07-06 09:46:18 -05:00
StevanFreeborn 09b7f7a2c7 Deploy master to production.
Add error handling to home page when requesting character data.
2022-06-29 09:28:17 -05:00
StevanFreeborn 0d226e5c96 Merge pull request #15 from StevanFreeborn/master
made footer container fluid
2022-06-26 11:57:47 -05:00
StevanFreeborn b30f377e58 Merge pull request #14 from StevanFreeborn/master
Add about page information. Deploy master to production.
2022-06-26 11:49:35 -05:00
StevanFreeborn 4f0a636095 Merge pull request #13 from StevanFreeborn/master
Deploy master to production.
2022-06-25 23:40:42 -05:00
StevanFreeborn c2b1b4700b Merge pull request #12 from StevanFreeborn/master
Render Home Page After Characters Are Received. Deploy master to production.
2022-06-25 15:01:24 -05:00
StevanFreeborn 2fde456a90 Merge pull request #11 from StevanFreeborn/master
fixed baseUrl to use https instead of http. deploy master to production.
2022-06-25 14:48:29 -05:00
StevanFreeborn c5a40fe934 Merge pull request #10 from StevanFreeborn/master
Fix warnings causing build to fail and added missing fields to package.json. Deploy master to production.
2022-06-25 14:43:33 -05:00
StevanFreeborn f9723553da Merge pull request #9 from StevanFreeborn/master
fixed file name redeploy master to production.
2022-06-25 14:33:53 -05:00
StevanFreeborn 23873336d7 Merge pull request #8 from StevanFreeborn/master
Deploy master to production
2022-06-25 14:27:34 -05:00
StevanFreeborn db86528468 Merge pull request #7 from StevanFreeborn/master
Deploy master to production
2022-06-24 15:56:02 -05:00
StevanFreeborn 4e4c531f5a Merge pull request #6 from StevanFreeborn/master
Deploy master to production.
2022-06-23 23:58:47 -05:00
StevanFreeborn ae00798cf5 Merge pull request #5 from StevanFreeborn/master
updated workflow
2022-06-19 17:29:46 -05:00
StevanFreeborn 63721e3138 Merge pull request #4 from StevanFreeborn/master
added config for swagger
2022-06-19 17:22:36 -05:00
StevanFreeborn 999531f0f5 Merge pull request #3 from StevanFreeborn/master
Merge master to production
2022-06-19 17:00:20 -05:00
13 changed files with 6216 additions and 3937 deletions
@@ -8,10 +8,10 @@ on:
types: [closed]
branches:
- production
workflow_dispatch:
jobs:
build_and_deploy_job:
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed') || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
name: Build and Deploy Job
steps:
@@ -43,3 +43,4 @@ jobs:
with:
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_ZEALOUS_CLIFF_09A0A7B10 }}
action: "close"
app_location: "/client"
@@ -0,0 +1,55 @@
name: Build and deploy ASP.Net Core app to Azure Web App - criminalmindsapi
env:
WORKING_DIRECTORY: ./server
on:
push:
branches:
- production
workflow_dispatch:
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Set up .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
- name: Build with dotnet
run: dotnet build --configuration Release
working-directory: ${{ env.WORKING_DIRECTORY }}
- name: dotnet publish
run: dotnet publish -c Release -o release
working-directory: ${{ env.WORKING_DIRECTORY }}
- name: Upload artifact for deployment job
uses: actions/upload-artifact@v4
with:
name: server
path: ./server/release
deploy:
runs-on: windows-latest
needs: build
environment:
name: 'production'
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}
permissions:
id-token: write
steps:
- name: Download artifact from build job
uses: actions/download-artifact@v4.1.7
with:
name: server
- name: Login to Azure
uses: azure/login@v1
with:
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_936FD4F727B94B4CA24C582D0863DF06 }}
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_0FB05F3F513C480395D15114ABAF36E0 }}
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_D1C0B88C12EF49D0BEEB5F2ACE6EC4FC }}
- name: Deploy to Azure Web App
id: deploy-to-webapp
uses: azure/webapps-deploy@v2
with:
app-name: 'criminalmindsapi'
slot-name: 'production'
package: .
+6114 -3754
View File
File diff suppressed because it is too large Load Diff
+8 -4
View File
@@ -12,7 +12,9 @@
"@testing-library/react": "^13.3.0",
"@testing-library/user-event": "^13.5.0",
"bootstrap": "^5.1.3",
"http-proxy-middleware": "^2.0.6",
"http-proxy-middleware": "^2.0.7",
"loader-utils": ">=2.0.3",
"minimatch": ">=3.0.5",
"nth-check": ">=2.0.1",
"react": "^18.2.0",
"react-bootstrap": "^2.4.0",
@@ -21,9 +23,9 @@
"react-loading-icons": "^1.1.0",
"react-router": "^6.3.0",
"react-router-dom": "^6.3.0",
"react-scripts": "5.0.1",
"web-vitals": "^2.1.4",
"terser": ">=5.14.2"
"react-scripts": "^5.0.1",
"terser": ">=5.14.2",
"web-vitals": "^2.1.4"
},
"scripts": {
"start": "set HTTPS=true&&react-scripts start",
@@ -54,6 +56,8 @@
"devDependencies": {
"eslint-config-react-app": "^7.0.1",
"jest-editor-support": "^30.1.0",
"loader-utils": ">=2.0.3",
"minimatch": ">=3.0.5",
"terser": ">=5.14.2"
}
}
+1 -1
View File
@@ -3,7 +3,7 @@ import Card from 'react-bootstrap/Card';
import Table from 'react-bootstrap/Table';
export default function CharacterCard(props) {
const image = new URL(props.character.image).pathname;
const characterName = props.character.fullName;
const firstEpisode = props.character.firstEpisode;
-16
View File
@@ -1,16 +0,0 @@
import React from 'react';
export default function DataButton(props) {
const label = props.label;
return (
<button
value={label.toLowerCase()}
onClick={(e) => props.handleClick(e.target.value)}
>
{props.label}
</button>
);
}
-17
View File
@@ -1,17 +0,0 @@
import React from 'react';
import Container from 'react-bootstrap/Container';
import Row from 'react-bootstrap/Row';
export default function DataButtonHolder(props) {
return(
<Container fluid>
<Row className="d-flex flex-row justify-content-center align-items-center">
{props.children}
</Row>
</Container>
);
}
-21
View File
@@ -1,21 +0,0 @@
import React from 'react';
import Card from 'react-bootstrap/Card';
export default function QuoteCard(props) {
const text = props.quote.text;
const source = props.quote.source
return (
<Card style={{ width: '22rem' }} className='p-1 m-3'>
<Card.Body>
<Card.Text>{text}</Card.Text>
<Card.Text>{source}</Card.Text>
</Card.Body>
</Card>
);
}
+20 -89
View File
@@ -5,111 +5,44 @@ import CardHolder from '../components/cardHolder';
import CharacterCard from '../components/characterCard';
import Loading from '../components/loading';
import LoadingError from '../components/loadingError';
import DataButtonHolder from '../components/dataButtonHolder';
import DataButton from '../components/dataButton';
import CharacterService from '../services/characterService';
import QuoteService from '../services/quoteService';
import QuoteCard from '../components/quoteCard';
const characterService = new CharacterService();
const quoteService = new QuoteService();
export default function Home() {
const [currentData, setCurrentData] = useState('characters');
const [data, setData] = useState([]);
const [characters, setCharacters] = useState([]);
const [errorMessage, setErrorMessage] = useState(null);
const getCharacters = async () => {
setData([]);
setCurrentData('characters');
const res = await characterService.getCharacters();
if (!res.ok) {
return setErrorMessage(`Failed to load characters`);
return setErrorMessage('Failed to load characters.');
}
const characters = await res.json();
return setData(characters);
return setCharacters(characters);
}
const getQuotes = async () => {
setData([]);
setCurrentData('quotes');
const res = await quoteService.getQuotes();
if (!res.ok) {
return setErrorMessage(`Failed to load quotes`);
}
const quotes = await res.json();
return setData(quotes.slice(0,20));
}
const getEpisodes = () => {console.log('episodes')}
const getSeasons = () => {console.log('seasons')}
useEffect(() => {
getCharacters();
}, []);
const models = [{ id: 1, name: 'Characters', handleClick: getCharacters},
{ id: 2, name: 'Quotes', handleClick: getQuotes },
{ id: 3, name: 'Episodes', handleClick: getEpisodes },
{ id: 4, name: 'Seasons', handleClick: getSeasons }];
const getCharacterCards = () => {
const getDataButtons = () => {
return models.map(model => {
return (
<DataButton
label={model.name}
handleClick={model.handleClick}
key={model.id}
/>
);
});
}
const getCards = () => {
if (currentData === 'quotes') {
return data.map(quote => {
return (
<QuoteCard
quote={quote}
key={quote.id}
/>
);
});
}
return data.map(character => {
return characters.map(character => {
return (
<CharacterCard
<CharacterCard
character={character}
key={character.id}
/>
@@ -124,32 +57,30 @@ export default function Home() {
setErrorMessage(null);
if (errorMessage === 'Failed to load characters.') return await getCharacters();
}
return (
<>
<Greeting />
<DataButtonHolder>
{getDataButtons()}
</DataButtonHolder>
{data.length > 0 ?
{characters.length > 0 ?
<CardHolder>
{getCards()}
{getCharacterCards()}
</CardHolder>
: errorMessage ?
: errorMessage ?
<LoadingError
message={errorMessage}
handleClick={handleTryAgain}
/>
: <Loading />}
<LoadingError
message={errorMessage}
handleClick={handleTryAgain}
/>
: <Loading />}
</>
);
}
-19
View File
@@ -1,19 +0,0 @@
import { baseUrl, versionHeader, versionHeaderValue } from '../constants';
class QuoteService {
getQuotes = async () => {
const res = await fetch(`${baseUrl}/api/quotes`, {
headers: {
[versionHeader]: versionHeaderValue
}
});
return res;
}
}
export default QuoteService;
+8 -7
View File
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
@@ -9,15 +9,16 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="FluentAssertions" Version="6.7.0" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="6.0.6" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.1.0" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
<PackageReference Include="FluentAssertions" Version="6.12.1" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="8.0.8" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
<PackageReference Include="moq" Version="4.20.72" />
<PackageReference Include="xunit" Version="2.9.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="coverlet.collector" Version="3.1.2">
<PackageReference Include="coverlet.collector" Version="6.0.2">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
@@ -92,6 +92,7 @@ namespace server.tests.v1.UnitTests
character.Should().BeOfType<Quote>();
}
[Fact]
public async Task GetQuoteByIdAsync_ValidIdForNonExistentQuote_Returns404StatusCodeWithProblemDetails()
{
var quoteId = "62b7d5506c1b407771829926";
+6 -7
View File
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<GenerateDocumentationFile>True</GenerateDocumentationFile>
@@ -12,12 +12,11 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="AspNetCoreRateLimit" Version="4.0.2" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.Versioning" Version="5.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.Versioning.ApiExplorer" Version="5.0.0" />
<PackageReference Include="MongoDB.Driver" Version="2.16.0" />
<PackageReference Include="Moq" Version="4.18.1" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.3.1" />
<PackageReference Include="AspNetCoreRateLimit" Version="5.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.Versioning" Version="5.1.0" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.Versioning.ApiExplorer" Version="5.1.0" />
<PackageReference Include="MongoDB.Driver" Version="2.29.0" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.8.1" />
</ItemGroup>
<ItemGroup>