Skip to content

Latest commit

 

History

History
116 lines (74 loc) · 2.83 KB

README.md

File metadata and controls

116 lines (74 loc) · 2.83 KB

2wr-app

Build Status

Application wireframes

See Application wireframes

Material design icons

See Material design icons

CodeTour Onboarding

In VSCode, you can get a walk-through of the code via the CodeTour extension. Install this extension, and review tours available in the 'CodeTour' folder.

CodeTour API file and panel with the Open tour file selected.

Project Prerequisites

  1. Node.js 16.x.x LTS

Project setup

npm install

Compiles and hot-reloads for development

npm run serve

Alternatively, you can run the functions and the Vue build for development

npm run dev

We've started the process of moving to a two tier build names where dev processes are prefixed with dev: so that you can run all the process by building this way. You will notice that you can run these separated if needed:

Just Serve the Vue PWA

npm run dev:serve

Just Start the Azure Function Project

npm run dev:napi

NOTE: We will be moving all the processes to this once we complete changes to the CI Build.

Compiles and minifies for production

npm run build

Run the api server

npm run api

Run the Azurite Server (Development Azure Storage Emulator)

If you're not running the API in Visual Studio (with the Azure SDK running), you'll need to run azurite for Storage Emulation:

npm run azurite

You may need to install azurite globally:

npm install -g azurite

Alternatively, there is an Azurite VS Code Extension:

Install Azure Extension

Run production files after build

First line you only ever need to execute once. Second line, execute every time prior to the third. (this is for the Powershell terminal, node terminal switch this to export NODE_ENV=production or SET NODE_ENV=production)

npm install -g serve
$env:NODE_ENV="production"
serve -s dist

Lints and fixes files

npm run lint

Customize configuration

See Configuration Reference.

Sample .env file

NODE_ENV=development
VUE_APP_APIROOT=http://localhost:7071/api/
VUE_APP_AUTH0_DOMAIN=login.2wr.org
VUE_APP_AUTH0_CLIENTID=6TSzRpgtMKR3NI1D4Is1nGO6brBB2wB0
VUE_APP_AUTH0_AUDIENCE=https://2wrdev.azurewebsites.net