Originally from https://cloud.tencent.com/developer/article/1968399
# create react app
mkdir my-app
cd my-app
# create client
npx create-react-app client
#create api for node
mkdir api
cd api
npm init -y
#install express for node
npm i --save express
Create server.js for server set-up See <./api/server.js>
Add "start" script in package.json, the global configuration file, to start server.js:
"scripts": {
"start": "node /server.js"
}
Launch the server by calling "start" that has just been created (in the root directory):
npm start