Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianRappl committed Jul 3, 2024
1 parent cce39c3 commit 5f8f8b5
Show file tree
Hide file tree
Showing 17 changed files with 5,365 additions and 3 deletions.
14 changes: 14 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# http://editorconfig.org
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
spaces_between_comma_and_parameters = 1

[*.md]
trim_trailing_whitespace = false
4 changes: 4 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# These are supported funding model platforms

github: [smapiot, FlorianRappl]
custom: ['https://www.paypal.me/FlorianRappl']
50 changes: 50 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Build and Deploy the App

on:
push:
branches: [main]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Set up Node.js version
uses: actions/setup-node@v1
with:
node-version: '20.x'

- name: npm install and build
run: |
cd apps/spa
npm install
npm run build
mv dist/emulator dist/release/
echo "dwx24.samples.piral.cloud" > dist/release/CNAME
cp dist/release/index.html dist/release/404.html
cd ..
- name: Upload artifact for deployment job
uses: actions/upload-artifact@v2
with:
name: webapp
path: apps/spa/dist/release

deploy:
runs-on: ubuntu-latest
needs: build

steps:
- name: Download artifact from build job
uses: actions/download-artifact@v2
with:
name: webapp

- name: Deploy Website
run: |
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
gh-pages -d "dist/release" -u "github-actions-bot <[email protected]>"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2024 piral-samples
Copyright (c) 2024 smapiot

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
15 changes: 13 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,13 @@
# dwx24
Demos for the talk "8 Things Micro Frontends Can Do" at the DWX 24 in Nürnberg, Germany.
[![Piral Logo](https://github.com/smapiot/piral/raw/develop/docs/assets/logo.png)](https://piral.io)

# [Piral Sample](https://piral.io) &middot; [![GitHub License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/smapiot/piral/blob/main/LICENSE) [![Gitter Chat](https://badges.gitter.im/gitterHQ/gitter.png)](https://gitter.im/piral-io/community)

> Demos for the talk "8 Things Micro Frontends Can Do" at the DWX 24 in Nürnberg, Germany.
:zap: A whole set of advanced things that micro frontends can do.

You can visit this demo at [dwx24.samples.piral.cloud/](https://dwx24.samples.piral.cloud/).

## License

Piral and this sample code is released using the MIT license. For more information see the [license file](./LICENSE).
Loading

0 comments on commit 5f8f8b5

Please sign in to comment.