Skip to content
This repository has been archived by the owner on Feb 1, 2023. It is now read-only.

Not working #2

Open
yarodevuci opened this issue Oct 2, 2021 · 7 comments
Open

Not working #2

yarodevuci opened this issue Oct 2, 2021 · 7 comments

Comments

@yarodevuci
Copy link

How to use this? VS code does not recognized start file...

@michaeljivan7
Copy link
Contributor

Hi @yarodevuci,

Please clone the GitHub repository via command line
git clone https://github.com/StateOfCalifornia/DigitalVaccineRecord-QR.git

Using Visual Studio Code add the Azure Functions extension, from the extensions installer.

Ensure this step by install azure functions core toolsnpm install -g azure-functions-core-tools@3

Now Run > Start Debugging

Make note of the local URL for API secrets.
Example: http://localhost:7071/api/QRCreate

This value will be used in the API, under the secrets.json file property { "AppSettings:QrCodeApi": "insert url here"}

#Functions QRCreate: Generates a QR code of the shc string passed from the API.

@yarodevuci
Copy link
Author

Hi @michaeljivan7
Thanks, will give it a try

@montyJordanIII
Copy link

does this have to be run using VSC debugger? I noticed npm start is mapped to func start and that there are dependencies, shouldn't npm install be run?

@montyJordanIII
Copy link

Hi @yarodevuci,

Please clone the GitHub repository via command line git clone https://github.com/StateOfCalifornia/DigitalVaccineRecord-QR.git

Using Visual Studio Code add the Azure Functions extension, from the extensions installer.

Ensure this step by install azure functions core toolsnpm install -g azure-functions-core-tools@3

Now Run > Start Debugging

Make note of the local URL for API secrets. Example: http://localhost:7071/api/QRCreate

This value will be used in the API, under the secrets.json file property { "AppSettings:QrCodeApi": "insert url here"}

#Functions QRCreate: Generates a QR code of the shc string passed from the API.

The extensions manager does not install core tools and fails right away with a message about installing core tools as a dependency.

@michaeljivan7
Copy link
Contributor

Hi @montyJordanIII ,

Azure functions core is required to run the function app correctly.
Were you able to successfully add the Azure functions extension to Visual Studio Code?

@montyJordanIII
Copy link

Hi @montyJordanIII ,

Azure functions core is required to run the function app correctly. Were you able to successfully add the Azure functions extension to Visual Studio Code?

Yes, I was able to add the azure core and function extensions into VSC. Not quite sure yet if the app is functioning properly yet. Is there a way to test it out without the other UI & API components?

@michaeljivan7
Copy link
Contributor

michaeljivan7 commented Dec 2, 2021

Hi @montyJordanIII ,
Azure functions core is required to run the function app correctly. Were you able to successfully add the Azure functions extension to Visual Studio Code?

Yes, I was able to add the azure core and function extensions into VSC. Not quite sure yet if the app is functioning properly yet. Is there a way to test it out without the other UI & API components?

You can try calling your local function app with payload of an shc code,

Example:
Create a POST call to http://localhost:0000/api/QRCreate and add to the body a payload of an shc string "shc:/56762909524"

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants