Code Monkey home page Code Monkey logo

guid-api's Introduction

Hi there ๐Ÿ‘‹

Let me do a small introduction of myself.
Currently, I'm a Software Engineer working on Azure at Microsoft.

During my day job, I spend a lot of time in Azure.
In my spare time, I try to expand my horizon by trying out stuff in Azure or in the .NET space which I don't have time to play around with during the day.

Feel free to contact me over here or on Twitter or on my blog. You can also find me on YouTube where I'll be posting videos regularly.

The repositories

If you are interested in contributing to one or more of my repositories, here are some suggestions.
They can all use some love and you can also raise issues or feature requests on the repositories.

guid-api's People

Contributors

jandev avatar rvdplas avatar

Watchers

 avatar  avatar

Forkers

rvdplas

guid-api's Issues

Ability to install the app as a PWA

I believe that this app is perfect for installation as a PWA. It's feature is a must have for me as a software developer, to be available as quickly as possible, from my mobile and desktop device.

Add a front-end with copy-to-clipboard functionality

Add a single page that invokes the API (api/DefaultNewGuid) and shows the created GUID in a text box with a copy-to-clipboard button.

The page should be as lightweight as possible, without tracking, JS frameworks, etc.

The page can be placed in a folder /content/static-site/.
It sounds like this page should be called index.html.

To host this site, use the Storage Account Static Site Hosting functionality.
This requires a new storage account, enable the static site hosting, and copy the files to the appropriate $web container.

Update to version 4 of the Functions runtime

Currently runs on v3, but support is ending in December 2023.
Updating to v4 should be easy enough, only the ~3 needs to be replaced with ~4 and everything should work similarly.

Have zero-downtime deployments

Due to the nature of the deployment of an Azure Function and running it from a package there is downtime at the moment.

Deployment of the Bicep file causes the run from package configuration setting to be set to 1, and not the URL where the package is located. This value is updated to the URL when the actual zip-file is uploaded.

Change this to a two-step deployment, similar to what has been done in the Minifier solution where this is also done in two deployment steps (https://github.com/Jandev/minifier/blob/develop/.github/workflows/release.yml).
First upload the zip file, get the correct URL and then use the URL as an input parameter to the Bicep files and set the correct configuration value.

Create a NPM package for support in Javascript

Create a small NPM package that invokes the api/DefaultNewGuid endpoint.
By default, it should return the JSON response, mentioned in #1, but there should be an opt-in for a plain-text response.

The package should be pushed towards the NPM registry whenever changes are made to the 'library'.

Have the key combo [Ctrl]+[c] put the guid in clipboard

There's a button on the static site page right now which is able to copy the created guid to the clipboard.

It would be great if the same functionality can be put in the key combo [Ctrl]+[c] (case insensitive) for easier copying of the guid and not having to bother with clicking the right element in the UI.

From a UX perspective it's great to have this written in some note on the homepage.

Upgrade API to .NET 8

The Azure Functions project is running on .NET Core 3.1, which is out of support.

Upgrade to the latest LTS, which is .NET 8.

This will require to change from the inproc to the isolated runtime of Azure Functions.

Support content type JSON

When the request has an Accept-header for application/json, it should return an object with a new guid, like:

{
  "value": "[the generated guid]"
}

Of course, the returned Content-Type also has to be set correctly.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.