0% found this document useful (0 votes)
43 views12 pages

Modern Front-End Architecture

This README file provides instructions for using the source code repository for 'Modern Front-end Architecture' by Ryan Lanciaux. It includes commands for running, testing, building, and ejecting the app, all of which are bootstrapped with Create React App. Additionally, it offers links to further documentation for React and Create React App features.

Uploaded by

bnh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
43 views12 pages

Modern Front-End Architecture

This README file provides instructions for using the source code repository for 'Modern Front-end Architecture' by Ryan Lanciaux. It includes commands for running, testing, building, and ejecting the app, all of which are bootstrapped with Create React App. Additionally, it offers links to further documentation for React and Create React App features.

Uploaded by

bnh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 12

README file:///Users/sayit/Dropbox/Mac%20(2)/Desktop/books/modern-front...

Apress Source Code


This repository accompanies Modern Front-end Architecture by Ryan Lanciaux (Apress,
2021).

Cover image

Download the files as a zip using the green button, or clone the repository to your
machine using Git.

Releases
Release v1.0 corresponds to the code in the published book, without corrections or
updates.

Contributions
See the file Contributing.md for more information on how you can contribute to this
repository.

This project was bootstrapped with Create React App.

Available Scripts
In the project directory, you can run:

yarn start

1 af 12 26/04/2025, 00.06
README file:///Users/sayit/Dropbox/Mac%20(2)/Desktop/books/modern-front...

Runs the app in the development mode.


Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.


You will also see any lint errors in the console.

yarn test

Launches the test runner in the interactive watch mode.


See the section about running tests for more information.

yarn build

Builds the app for production to the build folder.


It correctly bundles React in production mode and optimizes the build for the best
performance.

The build is minified and the filenames include the hashes.


Your app is ready to be deployed!

See the section about deployment for more information.

yarn eject

Note: this is a one-way operation. Once you eject, you can’t go back!

If you aren’t satisfied with the build tool and configuration choices, you can eject at any
time. This command will remove the single build dependency from your project.

Instead, it will copy all the configuration files and the transitive dependencies (webpack,
Babel, ESLint, etc) right into your project so you have full control over them. All of the
commands except eject will still work, but they will point to the copied scripts so you
can tweak them. At this point you’re on your own.

You don’t have to ever use eject. The curated feature set is suitable for small and middle
deployments, and you shouldn’t feel obligated to use this feature. However we
understand that this tool wouldn’t be useful if you couldn’t customize it when you are
ready for it.

Learn More
You can learn more in the Create React App documentation.

To learn React, check out the React documentation.

Code Splitting

This section has moved here: https://facebook.github.io/create-react-app/docs/code-


splitting

Analyzing the Bundle Size

2 af 12 26/04/2025, 00.06
README file:///Users/sayit/Dropbox/Mac%20(2)/Desktop/books/modern-front...

This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-


the-bundle-size

Making a Progressive Web App

This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-


progressive-web-app

Advanced Configuration

This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-


configuration

Deployment

This section has moved here: https://facebook.github.io/create-react-app/docs/


deployment

yarn build fails to minify

This section has moved here: https://facebook.github.io/create-react-app/docs/


troubleshooting#npm-run-build-fails-to-minify

This project was bootstrapped with Create React App.

Available Scripts
In the project directory, you can run:

yarn start

Runs the app in the development mode.


Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.


You will also see any lint errors in the console.

yarn test

Launches the test runner in the interactive watch mode.


See the section about running tests for more information.

yarn build

Builds the app for production to the build folder.


It correctly bundles React in production mode and optimizes the build for the best
performance.

The build is minified and the filenames include the hashes.

3 af 12 26/04/2025, 00.06
README file:///Users/sayit/Dropbox/Mac%20(2)/Desktop/books/modern-front...

Your app is ready to be deployed!

See the section about deployment for more information.

yarn eject

Note: this is a one-way operation. Once you eject, you can’t go back!

If you aren’t satisfied with the build tool and configuration choices, you can eject at any
time. This command will remove the single build dependency from your project.

Instead, it will copy all the configuration files and the transitive dependencies (webpack,
Babel, ESLint, etc) right into your project so you have full control over them. All of the
commands except eject will still work, but they will point to the copied scripts so you
can tweak them. At this point you’re on your own.

You don’t have to ever use eject. The curated feature set is suitable for small and middle
deployments, and you shouldn’t feel obligated to use this feature. However we
understand that this tool wouldn’t be useful if you couldn’t customize it when you are
ready for it.

Learn More
You can learn more in the Create React App documentation.

To learn React, check out the React documentation.

Code Splitting

This section has moved here: https://facebook.github.io/create-react-app/docs/code-


splitting

Analyzing the Bundle Size

This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-


the-bundle-size

Making a Progressive Web App

This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-


progressive-web-app

Advanced Configuration

This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-


configuration

Deployment

This section has moved here: https://facebook.github.io/create-react-app/docs/

4 af 12 26/04/2025, 00.06
README file:///Users/sayit/Dropbox/Mac%20(2)/Desktop/books/modern-front...

deployment

yarn build fails to minify

This section has moved here: https://facebook.github.io/create-react-app/docs/


troubleshooting#npm-run-build-fails-to-minify

This project was bootstrapped with Create React App.

Available Scripts
In the project directory, you can run:

yarn start

Runs the app in the development mode.


Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.


You will also see any lint errors in the console.

yarn test

Launches the test runner in the interactive watch mode.


See the section about running tests for more information.

yarn build

Builds the app for production to the build folder.


It correctly bundles React in production mode and optimizes the build for the best
performance.

The build is minified and the filenames include the hashes.


Your app is ready to be deployed!

See the section about deployment for more information.

yarn eject

Note: this is a one-way operation. Once you eject, you can’t go back!

If you aren’t satisfied with the build tool and configuration choices, you can eject at any
time. This command will remove the single build dependency from your project.

Instead, it will copy all the configuration files and the transitive dependencies (webpack,
Babel, ESLint, etc) right into your project so you have full control over them. All of the
commands except eject will still work, but they will point to the copied scripts so you
can tweak them. At this point you’re on your own.

You don’t have to ever use eject. The curated feature set is suitable for small and middle
deployments, and you shouldn’t feel obligated to use this feature. However we

5 af 12 26/04/2025, 00.06
README file:///Users/sayit/Dropbox/Mac%20(2)/Desktop/books/modern-front...

understand that this tool wouldn’t be useful if you couldn’t customize it when you are
ready for it.

Learn More
You can learn more in the Create React App documentation.

To learn React, check out the React documentation.

Code Splitting

This section has moved here: https://facebook.github.io/create-react-app/docs/code-


splitting

Analyzing the Bundle Size

This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-


the-bundle-size

Making a Progressive Web App

This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-


progressive-web-app

Advanced Configuration

This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-


configuration

Deployment

This section has moved here: https://facebook.github.io/create-react-app/docs/


deployment

yarn build fails to minify

This section has moved here: https://facebook.github.io/create-react-app/docs/


troubleshooting#npm-run-build-fails-to-minify

This project was bootstrapped with Create React App.

Available Scripts
In the project directory, you can run:

yarn start

Runs the app in the development mode.

6 af 12 26/04/2025, 00.06
README file:///Users/sayit/Dropbox/Mac%20(2)/Desktop/books/modern-front...

Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.


You will also see any lint errors in the console.

yarn test

Launches the test runner in the interactive watch mode.


See the section about running tests for more information.

yarn build

Builds the app for production to the build folder.


It correctly bundles React in production mode and optimizes the build for the best
performance.

The build is minified and the filenames include the hashes.


Your app is ready to be deployed!

See the section about deployment for more information.

yarn eject

Note: this is a one-way operation. Once you eject, you can’t go back!

If you aren’t satisfied with the build tool and configuration choices, you can eject at any
time. This command will remove the single build dependency from your project.

Instead, it will copy all the configuration files and the transitive dependencies (webpack,
Babel, ESLint, etc) right into your project so you have full control over them. All of the
commands except eject will still work, but they will point to the copied scripts so you
can tweak them. At this point you’re on your own.

You don’t have to ever use eject. The curated feature set is suitable for small and middle
deployments, and you shouldn’t feel obligated to use this feature. However we
understand that this tool wouldn’t be useful if you couldn’t customize it when you are
ready for it.

Learn More
You can learn more in the Create React App documentation.

To learn React, check out the React documentation.

Code Splitting

This section has moved here: https://facebook.github.io/create-react-app/docs/code-


splitting

Analyzing the Bundle Size

7 af 12 26/04/2025, 00.06
README file:///Users/sayit/Dropbox/Mac%20(2)/Desktop/books/modern-front...

This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-


the-bundle-size

Making a Progressive Web App

This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-


progressive-web-app

Advanced Configuration

This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-


configuration

Deployment

This section has moved here: https://facebook.github.io/create-react-app/docs/


deployment

yarn build fails to minify

This section has moved here: https://facebook.github.io/create-react-app/docs/


troubleshooting#npm-run-build-fails-to-minify

This project was bootstrapped with Create React App.

Available Scripts
In the project directory, you can run:

yarn start

Runs the app in the development mode.


Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.


You will also see any lint errors in the console.

yarn test

Launches the test runner in the interactive watch mode.


See the section about running tests for more information.

yarn build

Builds the app for production to the build folder.


It correctly bundles React in production mode and optimizes the build for the best
performance.

The build is minified and the filenames include the hashes.

8 af 12 26/04/2025, 00.06
README file:///Users/sayit/Dropbox/Mac%20(2)/Desktop/books/modern-front...

Your app is ready to be deployed!

See the section about deployment for more information.

yarn eject

Note: this is a one-way operation. Once you eject, you can’t go back!

If you aren’t satisfied with the build tool and configuration choices, you can eject at any
time. This command will remove the single build dependency from your project.

Instead, it will copy all the configuration files and the transitive dependencies (webpack,
Babel, ESLint, etc) right into your project so you have full control over them. All of the
commands except eject will still work, but they will point to the copied scripts so you
can tweak them. At this point you’re on your own.

You don’t have to ever use eject. The curated feature set is suitable for small and middle
deployments, and you shouldn’t feel obligated to use this feature. However we
understand that this tool wouldn’t be useful if you couldn’t customize it when you are
ready for it.

Learn More
You can learn more in the Create React App documentation.

To learn React, check out the React documentation.

Code Splitting

This section has moved here: https://facebook.github.io/create-react-app/docs/code-


splitting

Analyzing the Bundle Size

This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-


the-bundle-size

Making a Progressive Web App

This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-


progressive-web-app

Advanced Configuration

This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-


configuration

Deployment

This section has moved here: https://facebook.github.io/create-react-app/docs/

9 af 12 26/04/2025, 00.06
README file:///Users/sayit/Dropbox/Mac%20(2)/Desktop/books/modern-front...

deployment

yarn build fails to minify

This section has moved here: https://facebook.github.io/create-react-app/docs/


troubleshooting#npm-run-build-fails-to-minify

This project was bootstrapped with Create React App.

Available Scripts
In the project directory, you can run:

yarn start

Runs the app in the development mode.


Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.


You will also see any lint errors in the console.

yarn test

Launches the test runner in the interactive watch mode.


See the section about running tests for more information.

yarn build

Builds the app for production to the build folder.


It correctly bundles React in production mode and optimizes the build for the best
performance.

The build is minified and the filenames include the hashes.


Your app is ready to be deployed!

See the section about deployment for more information.

yarn eject

Note: this is a one-way operation. Once you eject, you can’t go back!

If you aren’t satisfied with the build tool and configuration choices, you can eject at any
time. This command will remove the single build dependency from your project.

Instead, it will copy all the configuration files and the transitive dependencies (webpack,
Babel, ESLint, etc) right into your project so you have full control over them. All of the
commands except eject will still work, but they will point to the copied scripts so you
can tweak them. At this point you’re on your own.

You don’t have to ever use eject. The curated feature set is suitable for small and middle
deployments, and you shouldn’t feel obligated to use this feature. However we

10 af 12 26/04/2025, 00.06
README file:///Users/sayit/Dropbox/Mac%20(2)/Desktop/books/modern-front...

understand that this tool wouldn’t be useful if you couldn’t customize it when you are
ready for it.

Learn More
You can learn more in the Create React App documentation.

To learn React, check out the React documentation.

Code Splitting

This section has moved here: https://facebook.github.io/create-react-app/docs/code-


splitting

Analyzing the Bundle Size

This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-


the-bundle-size

Making a Progressive Web App

This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-


progressive-web-app

Advanced Configuration

This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-


configuration

Deployment

This section has moved here: https://facebook.github.io/create-react-app/docs/


deployment

yarn build fails to minify

This section has moved here: https://facebook.github.io/create-react-app/docs/


troubleshooting#npm-run-build-fails-to-minify

Contributing to Apress Source Code


Copyright for Apress source code belongs to the author(s). However, under fair use you
are encouraged to fork and contribute minor corrections and updates for the benefit of the
author(s) and other readers.

How to Contribute

11 af 12 26/04/2025, 00.06
README file:///Users/sayit/Dropbox/Mac%20(2)/Desktop/books/modern-front...

1. Make sure you have a GitHub account.


2. Fork the repository for the relevant book.
3. Create a new branch on which to make your change, e.g. git checkout -b
my_code_contribution
4. Commit your change. Include a commit message describing the correction. Please
note that if your commit message is not clear, the correction will not be accepted.
5. Submit a pull request.

Thank you for your contribution!

Errata for Book Title


On page xx [Summary of error]:

Details of error here. Highlight key pieces in bold.

On page xx [Summary of error]:

Details of error here. Highlight key pieces in bold.

12 af 12 26/04/2025, 00.06

You might also like