From the course: React: Building Progressive Web Apps (PWAs)

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Install serve

Install serve - React.js Tutorial

From the course: React: Building Progressive Web Apps (PWAs)

Start my 1-month free trial

Install serve

- [Narrator] When we used Create React App to generate our project, it created this whole folder structure for us. A bunch of react components, a bunch of CSS files. We also have the public folder, which has the index file and the manifest, which we'll take a closer look at later. We also have things like the package json file here. The package json file explains all of the different dependencies that are apart of this project. So, we have react, react-dom, react-scripts. But, if you look underneath the scripts, note here, you'll see that we have a start script, which was already used. So, if I run npm start, it's just going to run react scripts, and then start. Which, basically just means it's going to run with pack and a bunch of other build tools that are behind the scenes. We also have a test commands. So, if I ran npm test, it would run test. And then, this one is dangerous, npm run, eject is going to eject us from the react scripts build. So we don't, probably don't want to use…

Contents