This repository contains an Angular frontend and a .NET API backend for converting HTML to PDF.
- Node.js and npm installed
- Angular CLI installed (
npm install -g @angular/cli
)
- Clone the repository:
git clone <repository_url>
- Navigate to the frontend directory:
cd HtmlToPdfConverter/frontend
- Install dependencies:
npm install
- Run the following command for a dev server:
Navigate to
npm start
http://localhost:4200/
. The app will automatically reload if you change any of the source files.
- Run the following command to build the project:
The build artifacts will be stored in the
npm run build
dist/
directory.
- Execute the following command to run unit tests via Karma:
npm test
- .NET 7 SDK installed
- Navigate to the backend directory:
cd HtmlToPdfConverter/backend
- Run the project using Visual Studio or by executing the following command:
The API will be hosted at
dotnet run
https://localhost:5001
by default.
@angular/animations
: Angular animation library.@angular/cdk
: Angular component development kit.@angular/common
,@angular/core
,@angular/forms
,@angular/platform-browser
,@angular/platform-browser-dynamic
,@angular/router
: Angular core and platform libraries.@angular/material
: Angular material UI components.rxjs
,zone.js
,tslib
: Angular dependencies.
Microsoft.AspNetCore.OpenApi
: OpenAPI/Swagger integration.PDFsharp
,Polybioz.HtmlRenderer.PdfSharp.Core
: Libraries for PDF generation.Swashbuckle.AspNetCore
: Swagger tooling for ASP.NET Core APIs.
This project is licensed under the MIT License - see the LICENSE file for details.