Skip to content

πŸš€ HTTP/2 will make our applications faster, simpler, and more robust. With this tutorial you can check the performance of a React.js Application with a HTTPS and HTTP2 Node.js Servers.

License

Notifications You must be signed in to change notification settings

JoseJPR/tutorial-reactjs-nodejs-performance-https-http2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1 Commit
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Tutorial React.js and Node.js Performance (HTTPS and HTTP2 Servers)

With this tutorial you can check the performance of a React.js Application with a HTTPS and HTTP2 Node.js Servers.



πŸ”– Description

πŸš€ HTTP/2 will make our applications faster, simpler, and more robust β€” a rare combination β€” by allowing us to undo many of the HTTP/1.1 workarounds previously done within our applications and address these concerns within the transport layer itself. Even better, it also opens up a number of entirely new opportunities to optimize our applications and improve performance!

Google Developers | Introduction to HTTP/2 Node.js HTTPS Documentation
Node.js HTTP2 Documentation
React.js Website
MDN Mozilla | MIME types
Lighthouse Documentation

πŸ“Ή Video Demo

The following video shows how you can check the difference between an https and http2 server with a react.js application.

Video

πŸ“Œ Methodologies and Guidelines

List of methodologies and tools used in this project for compliance with Quality Assurance Code (QAC)

βœ… Prerequisites

In order to work with this project, your local environment must have at least the following versions:

  • NodeJS Version: 14.xx
  • NPM Version: 7.10.0

πŸ“ How to work with this project

This project is built on the basis of several workspaces: back, front and performance. After installing the dependencies you will find several folders "node_modules".

You have to do the following steps to be able to work with this project.

1️⃣ Install Nodejs Dependencies

$npm i

2️⃣ Build React.js Application

$npm run build

3️⃣ Run HTTPS Server and Performance Test

$npm run server-https
$npm run performance-https

4️⃣ Run HTTP2 Server and Performance Test

$npm run server-http2
$npm run performance-http2

πŸ“‚ Code scaffolding

/
β”œβ”€β”€ assets 🌈               # Images Sources.
β”œβ”€β”€ back πŸ“                 # Backend Project with https and http2 Node.js servers.
β”œβ”€β”€ build πŸ“¦                # Frontend static compiled Application.
β”œβ”€β”€ front πŸ“                # Frontend Project with React.js library.
β”œβ”€β”€ performance πŸ“          # Performance Project Test with Lighthouse library.
β”œβ”€β”€ reports πŸ“Š              # Html static files with performance results.
└── ...

⛽️ Review and Update Sependencies

For review and update all npm dependencies of this project you need install in global npm package "npm-check-updates" npm module.

# Install and Run
$npm i -g npm-check-updates
$ncu

License

MIT

Happy Code

Created with JavaScript, lot of ❀️ and a few β˜•οΈ

This README.md file has been written keeping in mind

GitHub Markdown
Emoji Cheat Sheet

About

πŸš€ HTTP/2 will make our applications faster, simpler, and more robust. With this tutorial you can check the performance of a React.js Application with a HTTPS and HTTP2 Node.js Servers.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published