news-threads-client/packages/client
Derek Worthen a8b903672a
chore: migrate services (#5)
- update the user admin db
- implement hash routing
  - update from path based routing to hash routing
  - removes dependency on cdn for hosted sites
2021-05-24 16:10:58 -07:00
..
config chore: migrate auth. (#4) 2021-05-17 14:59:05 -07:00
public Use Yarn2 + PnP (#2) 2020-10-22 10:41:16 -07:00
src chore: migrate services (#5) 2021-05-24 16:10:58 -07:00
README.md Use Yarn2 + PnP (#2) 2020-10-22 10:41:16 -07:00
package.json Task/msal2 auth (#3) 2020-11-17 09:56:33 -08:00
tsconfig.json Initial code commit 2020-09-09 09:39:40 -07:00
webpack.config.js Use Yarn2 + PnP (#2) 2020-10-22 10:41:16 -07:00

README.md

This package contains the client portion of the News Threads application.

Available Scripts

In the project directory, you can run:

yarn start

Runs the app in the development mode.
Open http://localhost:8080 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

The running application expects a GraphQL API as defined in config.json.

yarn bundle

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

Deployment

The following section describes hosting the built output in Azure.

Prerequisites

Setup Azure Storage for hosting static websites as described in this article.

Deploy

Run yarn deploy --storage-account '<storage-account-name>' --storage-account-key '<storage-account-key>'

Note: Need to run yarn bundle before deploying.

Environment variables

Set the following system environment variables in order to deploy using environment variables.

  • AZURE_STORAGE_ACCOUNT : The Azure Storage account name.
  • AZURE_STORAGE_ACCOUNT_KEY : An access key to the Azure Storage account.

Run yarn deploy.