Thanks to visit codestin.com
Credit goes to github.com

Skip to content

abhishekshah2905/spring-angular

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring Angular Application

This project is a simple web application built with Spring Boot and Angular. It demonstrates how to create a RESTful API using Spring Boot and consume it in an Angular frontend.

Getting Started

Prerequisites

  • Java JDK 8 or higher
  • Maven
  • Node.js and npm installed

Installation

  1. Clone the repository:
  git clone https://github.com/abhishekshah2905/spring-angular.git
  1. Navigate to the project directory:
  cd sprular-server
  1. Build the project:
  mvn clean install
  1. Run the application:
  mvn spring-boot:run
  1. Navigate to the angular.json file directory:
  cd sprular-web/src/main/web/np-app
  1. Install the Angular CLI if you haven't already:
  npm install -g @angular/cli
  1. Install the frontend dependencies:
  npm install
  1. Build the Angular application:
  ng build --prod
  1. Access the application at http://localhost:4200/

Configuration

  • The CorsConfig class enables CORS for the API endpoints, allowing the Angular frontend to make requests to the backend.
  • The Angular frontend is configured to use environment-specific settings (environment.ts and environment.prod.ts) for API endpoints and other configurations.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published