TGIMBA .NET Core – New Dashboard Pre-work

Git  Code Commit (all commits between last post and this commit (link))

Welcome back to The Globe In My BucketList Application (TGIMBA) continuing .NET Core update.

Previously, I had mentioned putting the Angular 6 Type Script and React Redux JS client’s Cascading Style Sheets (CSS) on hold so I can fast track working on the Application Programmatic Interface (API).  However, as I was reviewing the current dashboard, it looks old and I want to give it a face lift first 🙂

To do this, I had to:

  • Tweak the TGIMBA Continuous Integration/ Continuous Deployment (CI/CD) pipeline.  More specifically, I added a build Power Shell script that writes the build statistics out to the database.  The power shell script is here.   The database table w/results:

db2build

  • Upgraded the mobile site a bit.  When I actually reviewed it online on my phone, it didn’t look as good as it did on my development computer.  So, I added some button icons to replace text and played with spacing.  The main page looks like this:

ffff

  • Added a new Azure function data ping service.  It consists on one method to verify the website is running.  The code is abstracted by an interface called ITgimbaPing.

gagagagagaga

  •  The implementation is pretty simple and looks like this:

hjhjhjhj

  •  The two interfaces are in place to allow abstraction for the unit test(s) I will eventually write.  The HTTP client implementation looks like this:

web

  •  The database implementation looks like this:

ggggggggggggggggggggggggggg

  •  The function itself (I deployed it the wizard and instructions from online) is timer based and runs once a day.

ffffffffffff

  • When run, the database table looks like this (in case you were wondering, I am assuming the function and database are both up if the data is inserted into the database):

db1

I am hopping this live data and using the new layout I can create something nice.

Stay tuned!

References

  1. https://stackoverflow.com/questions/53720678/netsdk1061-the-project-was-restored-using-microsoft-netcore-app-version-1-0-0
  2. https://stackoverflow.com/questions/8898088/single-line-for-statement-i-unexpected-at-this-time
  3. https://stackoverflow.com/questions/33276921/batch-script-to-execute-some-commands-in-each-sub-folder
  4. https://serverfault.com/questions/676075/bash-ftp-login-into-microsoft-ftp-service-invalid-command
  5. https://www.linuxquestions.org/questions/linux-software-2/ftp-server-cwd-error-404425/
  6. https://www.unix.com/shell-programming-and-scripting/24522-loops-within-ftp-shell-session.html
  7. https://daveismyname.blog/bash-loop-through-files-and-ftp-them
  8. https://blog.udemy.com/powershell-if-else/
  9. https://stackoverflow.com/questions/49671897/deleting-file-from-ftp-server-using-powershell
  10. https://www.computerperformance.co.uk/powershell/example-loop/#Example_2:_Foreach_Loop_with_Pipe
  11. https://stackoverflow.com/questions/52899564/azure-devops-build-pipeline-unable-to-access-build-buildnumber-in-script
  12. https://stackoverflow.com/questions/55870462/predefined-variables-in-previous-azure-pipeline-build
  13. https://www.sqlshack.com/6-methods-write-powershell-output-sql-server-table/
  14. https://stackoverflow.com/questions/48907751/missing-value-for-azurewebjobsstorage-in-local-settings-json-local-development-i
  15. https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-timer#cron-expressions
  16. https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-timer
  17. https://docs.microsoft.com/en-us/azure/azure-functions/functions-develop-vs
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s