This repository contains an Angular frontend and a Spring API. Follow the instructions below to set up and run both applications.
- Node.js and npm installed on your machine for running the Angular frontend.
- Java Development Kit (JDK) installed for running the Spring API.
- Angular CLI installed globally (
npm install -g @angular/cli
).
-
Angular Frontend:
- Navigate to the
frontend
directory:cd frontend
- Install dependencies:
npm install
- Start the development server:
ng serve
- Open your browser and navigate to
http://localhost:4200
to view the Angular application.
- Navigate to the
-
Spring API:
- Navigate to the
api
directory:cd api
- Build the project:
./mvnw clean install
- Run the Spring Boot application:
./mvnw spring-boot:run
- The Spring API will start running on
http://localhost:8080
.
- Navigate to the
Once both the frontend and API servers are running, you can access the application by visiting http://localhost:4200
in your browser. The frontend will communicate with the API running on http://localhost:8080
.
- Make sure that no other services are using ports
4200
and8080
, as these ports are used by the frontend and API respectively. - You might need to configure CORS settings on the Spring API if the frontend and API are hosted on different domains in a production environment.
- Ensure that your environment meets all the prerequisites mentioned above before attempting to run the applications.
Made with ❤️ during Infosys internship.