This project includes an Angular application as the frontend and a .NET 6 Core API as the backend. Here are the steps to run each part of the application.
-
Prerequisites:
- Ensure you have the .NET 6 SDK installed on your machine. You can download it from the official .NET website.
-
Navigate to the API Project:
- Open a terminal or command prompt.
- Navigate to the directory containing the .NET Core API project (
WebAPI).
-
Run the API:
- In the terminal, execute the following command to run the API:
dotnet run
NOTE:The API should start, listening on a local porthttps://localhost:7206/.- Otherwise the API result may be not shown
- In the terminal, execute the following command to run the API:
-
Prerequisites:
- Ensure you have Node.js installed on your machine. You can download it from the official Node.js website.
- Install the Angular CLI globally by running
npm install -g @angular/cliin your terminal.
-
Navigate to the Angular Project:
- Open a new terminal or command prompt window.
- Navigate to the directory containing the Angular project.
-
Install Dependencies:
- Run the following command to install the project dependencies:
npm install
- Run the following command to install the project dependencies:
-
Serve the Angular Application:
- Execute the following command to start the Angular development server:
ng serve
- Once the build is complete, the application will be available at
http://localhost:4200.
- Execute the following command to start the Angular development server:
Visit http://localhost:4200 in your web browser to view the Angular application, which should now be able to communicate with the .NET 6 Core API running on https://localhost:7206/.