Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/andrewjbateman/springboot-angular-interface

:clipboard: App to pass data from Java backend to Angular frontend
https://github.com/andrewjbateman/springboot-angular-interface

angular angular12 frontend full-stack java-backend spring-boot spring-java

Last synced: 7 days ago
JSON representation

:clipboard: App to pass data from Java backend to Angular frontend

Awesome Lists containing this project

README

        

# :zap: Spring Java Angular Interface

* Angular client with Java Spring boot back-end used to display simple list of users
* **Note:** to open web links in a new window use: _ctrl+click on link_

![GitHub repo size](https://img.shields.io/github/repo-size/AndrewJBateman/springboot-angular-interface?style=plastic)
![GitHub pull requests](https://img.shields.io/github/issues-pr/AndrewJBateman/springboot-angular-interface?style=plastic)
![GitHub Repo stars](https://img.shields.io/github/stars/AndrewJBateman/springboot-angular-interface?style=plastic)
![GitHub last commit](https://img.shields.io/github/last-commit/AndrewJBateman/springboot-angular-interface?style=plastic)

## :page_facing_up: Table of contents

* [General info](#general-info)
* [Screenshots](#screenshots)
* [Technologies](#technologies)
* [Setup](#setup)
* [Features](#features)
* [Status](#status)
* [Inspiration](#inspiration)
* [Contact](#contact)

## General info

* Displays Java back end user data in a front end Angular list.

## Technologies

* [Angular framework v12](https://angular.io/)
* [Spring Java Tools v4](https://spring.io/tools)

## Setup

* Backend: change directory to `/springboot-backend` and run java code
* Frontend: run `ng serve` from `/angular-frontend`

## Code Examples

* `UserController` class to get a list of all users

```java
public class UserController {

@Autowired
private UserRepository userRepository;

@GetMapping("users")
public List getUsers() {
return this.userRepository.findAll();
}

}
```

## Features

* Backend java user data passed to frontend

## Status

* Status: Working. Updated may 2021.
* To-Do: Nothing

## Inspiration

* [Youtube: Angular + Spring Boot REST API Example Tutorial | Java Guides](https://www.youtube.com/watch?v=_rMAnZIcRiU&t=3s)

## Screenshots

![Example screenshot](./img/java-angular.png)

## :file_folder: License

* This project is licensed under the terms of the MIT license.

## :envelope: Contact

* Repo created by [ABateman](https://github.com/AndrewJBateman), email: [email protected]