Skip to content

chopeen/last-fm-not-mine-alert-web

Repository files navigation

Basic Web UI to manage configuration for last-fm-not-mine-alert-func

Architecture

+-----------------------+
|                       |
| Web UI (this repo)    |
|                       |
+-----------+-----------+
            |
            |
+-----------v-----------+       +-------------------------+        +----------------------+
|                       |       |                         |        |                      |
| `not-my-artists` API  +-------> `send-alert`            +--------> email                |
|                       |       |                         |        |                      |
+-----------^-----------+       +------------^------------+        +----------------------+
            |                                |
            |                                |
+-----------v-----------+                    |
|                       |                    |
| configuration tables  |                    |
|                       |                    |
+-----------------------+                    |
                                             |
                                +------------+-------------+
                                |                          |
                                | Last.fm API              |
                                |                          |
                                +--------------------------+

Related projects

The core of the solution is the repository last-fm-not-mine-alert-func. It contains two Azure functions:

  • send-alert (timer trigger) - fetching information from Last.fm API and sending email alerts
  • not-my-artists (HTTP trigger) - API to access the configuration stored in Azure Storage tables

Non-ASCII characters in regular expressions

.NET Core supports the names of Unicode blocks in regular expressions, so there's no need to specify every diacritic character explicitly.

Links

TODO

  1. (!!) Read about authentication and authorization in .NET Core - what will be easy to implement? Some standard implementation to replace the current custom one.
  2. (!) Show a confirmation that a new entry was added successfully (Success page or jQuery notification?)
  3. (!) Add a page to list existing artists (new page or Index?)
  4. Place the label and text box next to each other; make the latter smaller
  5. Performance of func
    • example call
      • Total: 2500ms
      • Last.fm: 1500ms
      • What's eating up the remaining time?

About

Basic Web UI to manage configuration for `last-fm-not-mine-alert-func`

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published