• Complain

Juha Hinkula [Juha Hinkula] - Hands-On Full Stack Development with Spring Boot 2.0 and React

Here you can read online Juha Hinkula [Juha Hinkula] - Hands-On Full Stack Development with Spring Boot 2.0 and React full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. year: 2018, publisher: Packt Publishing, genre: Computer. Description of the work, (preface) as well as reviews are available. Best literature library LitArk.com created for fans of good reading and offers a wide selection of genres:

Romance novel Science fiction Adventure Detective Science History Home and family Prose Art Politics Computer Non-fiction Religion Business Children Humor

Choose a favorite category and find really read worthwhile books. Enjoy immersion in the world of imagination, feel the emotions of the characters or learn something new for yourself, make an fascinating discovery.

Juha Hinkula [Juha Hinkula] Hands-On Full Stack Development with Spring Boot 2.0 and React
  • Book:
    Hands-On Full Stack Development with Spring Boot 2.0 and React
  • Author:
  • Publisher:
    Packt Publishing
  • Genre:
  • Year:
    2018
  • Rating:
    5 / 5
  • Favourites:
    Add to favourites
  • Your mark:
    • 100
    • 1
    • 2
    • 3
    • 4
    • 5

Hands-On Full Stack Development with Spring Boot 2.0 and React: summary, description and annotation

We offer to read an annotation, description, summary or preface (depends on what the author of the book "Hands-On Full Stack Development with Spring Boot 2.0 and React" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.

Develop efficient and modern full-stack applications using Spring Boot and React 16

Key Features
  • Develop resourceful backends using Spring Boot and faultless frontends using React.
  • Explore the techniques involved in creating a full-stack app by going through a methodical approach.
  • Learn to add CRUD functionalities and use Material UI in the user interface to make it more user-friendly.
Book Description

Apart from knowing how to write frontend and backend code, a full-stack engineer has to tackle all the problems that are encountered in the application development life cycle, starting from a simple idea to UI design, the technical design, and all the way to implementing, testing, production, deployment, and monitoring. This book covers the full set of technologies that you need to know to become a full-stack web developer with Spring Boot for the backend and React for the frontend.

This comprehensive guide demonstrates how to build a modern full-stack application in practice. This book will teach you how to build RESTful API endpoints and work with the data access Layer of Spring, using Hibernate as the ORM. As we move ahead, you will be introduced to the other components of Spring, such as Spring Security, which will teach you how to secure the backend. Then, we will move on to the frontend, where you will be introduced to React, a modern JavaScript library for building fast and reliable user interfaces, and its app development environment and components.

You will also create a Docker container for your application. Finally, the book will lay out the best practices that underpin professional full-stack web development.

What you will learn
  • Create a RESTful web service with Spring Boot
  • Understand how to use React for frontend programming
  • Gain knowledge of how to create unit tests using JUnit
  • Discover the techniques that go into securing the backend using Spring Security
  • Learn how to use Material UI in the user interface to make it more user-friendly
  • Create a React app by using the Create React App starter kit made by Facebook
Who this book is for

Java developers who are familiar with Spring, but have not yet built full-stack applications

Downloading the example code for this book You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com. If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the files e-mailed directly to you.

Juha Hinkula [Juha Hinkula]: author's other books


Who wrote Hands-On Full Stack Development with Spring Boot 2.0 and React? Find out the surname, the name of the author of the book and a list of all author's works by series.

Hands-On Full Stack Development with Spring Boot 2.0 and React — read online for free the complete book (whole text) full work

Below is the text of the book, divided by pages. System saving the place of the last page read, allows you to conveniently read the book "Hands-On Full Stack Development with Spring Boot 2.0 and React" online for free, without having to search again every time where you left off. Put a bookmark, and you can go to the page where you finished reading at any time.

Light

Font size:

Reset

Interval:

Bookmark:

Make
Chapter 11

Answer 1: Material-UI is the component library for React and it implement the Google's Material Design.

Answer 2: First you have to install Material-UI library using the following command npm install @material-ui/core. Then you can start to use component from the library. The documentation of the different components can be found from https://material-ui.com/.

Answer 3: You can remove a component using the following npm command npm remove .

Hands-On Full Stack Development with Spring
Boot 2.0 and React
Build modern and scalable full stack applications using the Java-based Spring Framework 5.0 and React
Juha Hinkula

BIRMINGHAM - MUMBAI Securing the backend We have implemented CRUD - photo 1

BIRMINGHAM - MUMBAI
Securing the backend

We have implemented CRUD functionalities to our frontend using an unsecured backend. Now, it is time to switch on security again for our backend and go back to the version that we created in , Securing and Testing Your Backend:

  1. Open your backend project with the Eclipse IDE and open the SecurityConfig.java file in the editor view. We commented the security out and allowed everyone access to all endpoints. Now, we can remove that line and also remove the comments from the original version. Now your SecurityConfig.java file's configure method should look like the following:
@Override
protected void configure(HttpSecurity http) throws Exception {
http.csrf().disable().cors().and().authorizeRequests()
.antMatchers(HttpMethod.POST, "/login").permitAll()
.anyRequest().authenticated()
.and()
// Filter for the api/login requests
.addFilterBefore(new LoginFilter("/login", authenticationManager()),
UsernamePasswordAuthenticationFilter.class)
// Filter for other requests to check JWT in header
.addFilterBefore(new AuthenticationFilter(),
UsernamePasswordAuthenticationFilter.class);
}

Let's test what happens when the backend is now secured again.

  1. Run the backend by pressing the Run button in Eclipse and check from the Console view that the application started correctly. Run the frontend by typing the npm start command into your terminal and the browser should be opened to the address localhost:3000.
  1. You should now see the list page and the table are empty. If you open the developer tools, you will notice that the request ends in the 403 Forbidden HTTP error. This is actually what we wanted because we haven't done the authentication yet to our frontend:
Questions How should you create a Spring Boot-executable JAR file How should - photo 2
Questions
  1. How should you create a Spring Boot-executable JAR file?
  2. How should you deploy the Spring Boot application to Heroku?
  3. How should you deploy the React app to Heroku?
  4. What is Docker?
  5. How should you create the Spring Boot application container?
  6. How should you create the MariaDB container?
Other Books You May Enjoy

If you enjoyed this book, you may be interested in these other books by Packt:

Hands-On High Performance with Spring 5 Chintan Mehta Subhash Shah Pritesh - photo 3

Hands-On High Performance with Spring 5
Chintan Mehta, Subhash Shah, Pritesh Shah, Prashant Goswami, Dinesh Radadiya

ISBN: 978-1-78883-838-2

  • Master programming best practices and performance improvement with bean wiring
  • Analyze the performance of various AOP implementations
  • Explore database interactions with Spring to optimize design and configuration
  • Solve Hibernate performance issues and traps
  • Leverage multithreading and concurrent programming to improve application performance
  • Gain a solid foundation in JVM performance tuning using various tools
  • Learn the key concepts of the microservice architecture and how to monitor them
  • Perform Spring Boot performance tuning, monitoring, and health checks

Building RESTful Web Services with Spring 5 - Second Edition Raja CSP Raman - photo 4

Building RESTful Web Services with Spring 5 - Second Edition
Raja CSP Raman, Ludovic Dewailly

ISBN: 978-1-78847-589-1

  • Deep dive into the principles behind REST
  • Expose CRUD operations through RESTful endpoints with the Spring Framework
  • Devise response formats and error handling strategies, offering a consistent and flexible structure to simplify integration for service consumers
  • Follow the best approaches for dealing with a service's evolution while maintaining backward compatibility
  • Understand techniques to secure web services
  • Comply with the best ways to test RESTful web services, including tips for load testing
  • Optimise and scale web services using techniques such as caching and clustering
Questions
  1. What is REST?
  2. How can you create a RESTful web service with Spring Boot?
  3. How can you fetch items using our RESTful web service?
  4. How can you delete items using our RESTful web service?
  5. How can you add items using our RESTful web service?
  6. How can you update items using our RESTful web service?
  7. How can you use queries with our RESTful web service?
Creating the project with Spring Initializr

We will create our backend project with Spring Intializr, that is a web-based tool that's used to create Spring Boot projects. Spring Intializr can be found at https://start.spring.io:

We will generate a Maven project with Java and the latest Spring Boot version - photo 5

We will generate a Maven project with Java and the latest Spring Boot version. In the Group field, we will define our group ID, that will also become a base package in our Java project. In the Artifact field, we will define the artifact ID, that will also be the name of our project in Eclipse.

In the Dependencies section, we will select the starters and dependencies that are needed in our project. Spring Boot provides starter packages that simplify your Maven configuration. Spring Boot starters are actually a set of dependencies that you can include in your project. You can either type the keyword of the dependency into the search field, or you can see all available dependencies by clicking on the Switch to the full version link. We will start our project by selecting two dependencies Web and DevTools . You can type the dependencies into the search field or switch to the full version and see all the starter packages and dependencies available:

The DevTools dependency provides us with Spring Boot development tools that - photo 6

The DevTools dependency provides us with Spring Boot development tools, that provide automatic restart functionality. It makes development much faster because the application is automatically restarted when changes have been saved. The web starter pack is a base for full-stack development and provides embedded Tomcat.

Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «Hands-On Full Stack Development with Spring Boot 2.0 and React»

Look at similar books to Hands-On Full Stack Development with Spring Boot 2.0 and React. We have selected literature similar in name and meaning in the hope of providing readers with more options to find new, interesting, not yet read works.


Reviews about «Hands-On Full Stack Development with Spring Boot 2.0 and React»

Discussion, reviews of the book Hands-On Full Stack Development with Spring Boot 2.0 and React and just readers' own opinions. Leave your comments, write what you think about the work, its meaning or the main characters. Specify what exactly you liked and what you didn't like, and why you think so.