Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/aaronpowell/swa-github-auth-identity


https://github.com/aaronpowell/swa-github-auth-identity

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

# Static Web Apps GitHub Identity Sample

This repository contains a sample application showing how you can create your own user profile using the GitHub API from within Static Web Apps.

Learn more [on my blog](https://www.aaron-powell.com/posts/2021-07-16-adding-user-profiles-to-swa/) and [check out the deployed app](https://victorious-moss-09e734410.azurestaticapps.net/).

## Azure Static Website React Template

This repository contains a template for creating an [Azure Static Web App](https://docs.microsoft.com/azure/static-web-apps/?WT.mc_id=javascript-0000-aapowell) projects using React + TypeScript.

In the template there is [Create React App](https://create-react-app.dev) site using TypeScript and an `api` folder with an empty [Azure Functions](https://docs.microsoft.com/azure/functions/?WT.mc_id=javascript-0000-aapowell), also using TypeScript.

To get started, click the **Use this template** button to create a repository from this template, and check out the [GitHub docs on using templates](https://docs.github.com/en/github/creating-cloning-and-archiving-repositories/creating-a-repository-from-a-template).

## Running The Application

From a terminal run `npm start` from both the repository root and `api` folder to start the two servers, the web application will be on `http://localhost:3000` and the API on `http://localhost:7071`. Alternatively, you can use the VS Code launch of `Run full stack` to run both together with debuggers attached.