open the cmd. Go to the location where the server.js file is located and then type...
npm init
npm install express
node server.jsYou should see now the following line:
Example app listening at http://localhost:8080
open the cmd. Go to the location where the project will be located, and then type…
npx create-react-app my-app
cd my-app
cd srcin the 'src' folder -
- delete the file App.js,
- copy here the files: App.js, info.js, styles.css, icon.svg (the files from the GitHub...).
you cen also delete the files: logo.svg, App.css, App.test
type into the index.js file the next line:
- import './styles.css';
and then type in the cmd…
npm startYou should see now the in your browser the data receives from the server.
Note: You can refresh the page and see the new data that received in the server
For more information, you can contact us by email at: 00feder@gmail.com