.NET 5 with Vue components. Uses Parcel for build environment of Vue.
This is not a SPA, it is a .NET Core MVC app utlizing individual Vue components - see VueCore/ClientComponents/src/main.js
for set up of components.
Each component is mounted within an HTML element using the class __vue-root
and an id representing the name of the component to mount.
<div id="h_CommentBox"
data-post-id="10"
data-post-comment=".NET 5, Vue"
class="__vue-root">
</div>
- .NET 5
- Node 10+
- Parcel
- Vue
- Docker (optional)
- Azure Account with
- Storage
- Computer Vision
- Media Services
Yarn:
yarn global add parcel-bundler
npm:
npm install -g parcel-bundler
cd VueCore
Yarn:
yarn install
npm:
NPM Only. Ignore if using Yarn. Add the following to the scripts
section within
package.json
"scripts": {
"preinstall": "npx npm-force-resolutions",
}
This is addresses a known bug with Parcel and Babel Preset-env. parcel-bundler/parcel#5943
Then execute
npm install
Yarn:
yarn start
npm:
npm start
Yarn:
yarn build
npm:
npm build
cd VueCore
docker build -t aurlaw/vuecore:1.0 .
docker run -d -p 9090:80 aurlaw/vuecore:1.0
git tag v1.0
git push --tags
vue-core
dotnet user-secrets set "AzureStorage:ConnectionString" "STORAGE CONNECTION STRING"
dotnet user-secrets set "AzureStorage:Container" "STORAGE CONTAINER NAME"
dotnet user-secrets set "AzureVision:Endpoint" "VISION ENPOINT"
dotnet user-secrets set "AzureVision:SubscriptionKey" "VISION SUBSCRIPTION KEY"
dotnet user-secrets set "AzureVision:ThumbnailWidth" "300"
dotnet user-secrets set "AzureVision:ThumbnailHeight" "300"
Use sample.env as a template for the .env file to be created. The .env file must be placed at the root of the sample (same location than sample.env). Connect to the Azure portal with your browser and go to your media services account / API access to get the .ENV data to store to the .env file.
dotnet ef migrations add MIGRATION_NAME -c BlogContext -o Data/Migrations
docker run -t -i -e ELSA__SERVER__BASEADDRESS='https://localhost:5001' -p 14000:80 elsaworkflows/elsa-dashboard:latest
or (to run both Dashboard and SMTP)
docker compose up -d
Access Elsa dashboard: http://localhost:14000/
docker run -p 3000:80 -p 2525:25 rnwood/smtp4dev:linux-amd64-3.1.0-ci0856
or (to run both Dashboard and SMTP)
docker compose up -d
Server: localhost
Port: 2525
Access SMTP dashboard: http://localhost:3000/