This document explains how the banking application demo is deployed to GitHub Pages.
The React application is automatically built and deployed to GitHub Pages using GitHub Actions whenever changes are pushed to the main branch.
The demo is available at: https://koke1997.github.io/bankarstvo/
The application is configured for GitHub Pages deployment with the following settings:
/bankarstvo/ as the base path in productionbasename="/bankarstvo" for productionpublicPath: '/bankarstvo/' in production modeThe deployment is automated using the .github/workflows/deploy-gh-pages.yml workflow which:
npm cinpm run builddist folder as a Pages artifact.github/workflows/deploy-gh-pages.yml: GitHub Actions workflow for deploymentconfig/webpack.config.js: Webpack configuration with GitHub Pages supportfrontend/src/router/AppRouter.tsx: React Router configuration with basenamepackage.json: Build scripts for productionTo run the app locally in development mode:
npm install
npm run dev
This will start a development server at http://localhost:3000 without the /bankarstvo/ base path.
To build the app for production locally:
npm run build
This will create a production build in the dist folder with the correct base path configuration.
The deployment happens automatically on push to main, but you can also trigger it manually:
If the deployment fails:
.nojekyll file is automatically created during the build to prevent GitHub Pages from processing the site with JekyllhistoryApiFallback behaviordist/static folder