React APP
First, let's create the front-end:
npx create-react-app front --use-npmdeconstruction:
npx: a software that can download packages and use them directlycreate-react-app: an npm package that allows fast setup of a React Appfront: the name of the directory we want to work in--use-npm: otherwise,create-react-appdefaults toyarn.yarnis completely fine, but in this exercise, we'll usenpm.
Feel free to edit package.json to change the name and version of your front-end
Personally, I can't stand the browser opening on its own, so in package.json, I change the line
"start": "react-scripts start",to
"start": "BROWSER=none react-scripts start",Finally, let's delete the file README.md that create-react-app creates for us.
Last updated
Was this helpful?