将MSAL登录与vueJS一起使用单页应用程序示例
使用MSAL.js登录并检查身份验证状态和令牌
构建设置
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
Go Vuejs示例
带有Vuejs的示例SPA应用程序(用于Web前端)和Golang(用于后端)
先决条件
brew install go
brew install node
npm i -g yarn
npm i -g vue/cli
通过克隆此存储库运行
git clone https://github.com/junlapong/go-vuejs.git
cd web && yarn && yarn build && cd -
go mod tidy
go run main.go
建立
vuejs示例
Projeto criado com
:package: 安装和执行
# Faça o clone do repositório
git clone gitgithub.com:denilsonrp/vuejs-example.git
# Instale as dependências
yarn install
# Variáveis de ambiente
Crie um arquivo .env a partir do arquivo .env.example, e