Shows the ranking of teams for 'MdRzA - Mit dem Rad zur Arbeit'. Users can create a link to share or use himself.
This app is available at mdrza-ranking.inpercima.net.
node 26.13.1or higher in combination withnpm 11.20.0or higher orpnpm 12.21.0or higher, used in this repository
Install pnpm by running:
npm install -g [email protected]This repo uses pnpm as package manager.
You can also use npm for your local work but changes will be made by pnpm only.
@angular/cli 22.2.0or higher
Install @angular/cli by running:
pnpm install -g @angular/cli@22# clone project
git clone https://github.com/inpercima/mdrza-ranking/
# navigate to the project
cd mdrza-ranking
# install tools and frontend dependencies
pnpm install
# create environment files for `development mode`.
cp src/environments/environment.ts src/environments/environment.dev.tsNote: This file will not be under version control (listed in .gitignore).
Edit src/environments/environment.dev.ts to match your local setup:
- Set
production: false - Configure
apiURL (default:./api/) - Adjust other settings as needed (see Configuration section)
pnpm startThe application will be available at http://localhost:4200/ and automatically reload when you make changes to the source code.
pnpm build:devThis runs ng lint followed by ng build --configuration=development, creating a development build in the dist/ directory.
Edit src/environments/environment.prod.ts:
- Set
production: true - Configure production
apiURL - Set appropriate theme and other production-specific settings
pnpm build:prodThis runs ng lint followed by ng build (production configuration), creating an optimized bundle in dist/.
After a push to the main branch the app will be deployed by the github actions using github pages.
# run unit tests
ng test
# run end-to-end tests
ng e2e
# lint files
ng lintAll options have to been set in the environment files but some of them do not need to be changed.
All defaults refer to the environment file (environment.ts), they are prepared in development mode (environment.dev.ts).
Change for production mode the option production to true.
Defines the URL to the backend.
- default:
./ - type:
string
Applicationwide title of the app, displayed in title and toolbar.
- default:
Davengo results - type:
string
Defines whether the app is in production or not.
- default:
false - type:
boolean - values:
true/false
Name of a pre-build-theme or a custom theme.
- default:
rose-red - type:
string - values:
rose-red/azure-blue/magenta-violet/cyan-orange/custom
To modify the custom theme just edit the colors and themes in themes.scss.