This is the source code for the chalender.ch PWA.
- Frontend: Angular
- Server-Side Rendering: Angular Universal
- Styling: SCSS
- CI/CD: GitHub Actions for continuous integration and deployment
To get started with Chalender.ch, follow these steps:
Ensure you have the following installed:
- Node.js (LTS version)
- npm (latest version)
-
Clone the repository
-
Navigate to the project directory
-
Install dependencies:
npm install
To run the application locally:
-
Build and serve the application with SSR:
npm run dev:ssr
-
Open your browser and navigate to
http://localhost:4200
.
Run ng build
to build the project. The build artifacts will be stored in the dist/
directory.
To restore the events in the events list after back routing, a router reuse strategy is defined.
For all the routes that contain a reuseRouteKey
parameter in the route data, the RouteReuseStrategy
will be used. reuseRouteKey
should be unique.
To have access to onAttach
and onDetach
lifecycle events, we implement our own router outlet. This router outlet will be used in the app.component.html
file.
Run ng serve
for a dev server. Navigate to http://localhost:4200/
. The application will automatically reload if you change any of the source files.
We welcome contributions to the chalender.ch API! If you have suggestions for improvement or want to contribute code, please feel free to fork the repository and submit a pull request.
This project is licensed under the Mozilla Public License 2.0 (MPL 2.0) - see the LICENSE file for details.