Git Product home page Git Product logo

hantsy / angular-spring-reactive-sample Goto Github PK

View Code? Open in Web Editor NEW
248.0 18.0 154.0 908 KB

RESTful API demos with Spring 6 WebFlux, Spring Boot 3, Spring Data Mongo, Spring Security, Spring Session and Angular (upgraded to v16)

Home Page: https://medium.com/@hantsy/build-a-reactive-application-with-spring-boot-2-0-and-angular-de0ee5837fed

License: GNU General Public License v3.0

Java 36.36% JavaScript 5.87% Dockerfile 0.17% TypeScript 48.86% CSS 1.04% HTML 7.42% SCSS 0.27%
spring-boot angular reactive spring-data-mongodb-reactive reactor spring-session spring-security

angular-spring-reactive-sample's Introduction

Hantsy Bai(@hantsy)

hantsy

I'm Hantsy - a freelancer from China. Previously I worked with diverse teams around the world and helped numerous customers with professional service, not limited to coaching the team members, cooking startup POCs and delivering large-scale distributed applications.

Getting in touch

angular-spring-reactive-sample's People

Contributors

dependabot[bot] avatar hantsy avatar olegdokuka avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

angular-spring-reactive-sample's Issues

Client login returns 401 in browser but working fine via postman - Unauthorized error. Message - Full authentication is required to access this resource

I implemented the exact same in client with JWT authentication. The Server authentication works when requested via postman but unable to get the same at client side.

attempAuth(credentials: Credentials): Observable<any> {
    console.log('attempAuth ::');
    return this.http.post<any>(`${apiUrl}/login`, {"username":credentials.username,"password":credentials.password},)
      .pipe(
      tap(data => {
        console.log('do::');
        console.log(data);
        this.store.setState({
          user: data, authenticated: Boolean(data)
        });
      })
      );
  }

I'm stuck on this, Getting error as Unauthorized error. Message - Full authentication is required to access this resource

Any response would be of great help!

Upload file with server side progress bar

Hi Hantsy,

This example is very helpful, I have checked your Spring flux file upload example as well. But I would like to request you to add one more feature Could you please add Upload file feature with server side progress bar in a spring web flux way. It would be very helpful. Thanks in advance.

Regards,
Jay Kumar Patil

Cleanup non issue

When my account was compromised a spam issue was created in this repo. I sincerely apologize. Cleaning up such issues via script.

Spring Security error

On startup with security
error of
Parameter 0 of method springWebFilterChain in com.example.ThreeSquare.SecurityConfig required a bean of type 'org.springframework.security.config.web.server.ServerHttpSecurity' that could not be found.

if added @EnableWebFluxSecurity

The bean 'requestDataValueProcessor', defined in class path resource [org/springframework/security/config/annotation/web/configuration/WebMvcSecurityConfiguration.class], could not be registered. A bean with that name has already been defined in class path resource [org/springframework/security/config/annotation/web/reactive/WebFluxSecurityConfiguration.class] and overriding is disabled.

Could not make it run at all...

RSocket + Angular

I'm looking to make a POC, with Angular 10 and Socket + Spring Boot, do you know if it is possible to use both?

Tanks Hantsy !!

Spring Security error on application run

There is @EnableWebFluxSecurity annotation missing on SecurityConfig class.
It produces an error:


APPLICATION FAILED TO START


Description:

Parameter 0 of method springWebFilterChain in org.knight.posts.SecurityConfig required a bean of type 'org.springframework.security.config.web.server.ServerHttpSecurity' that could not be found.

Action:

Consider defining a bean of type 'org.springframework.security.config.web.server.ServerHttpSecurity' in your configuration.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.