创建React Express应用
关于样板
此设置允许使用Node / Express / React应用程序,该应用程序可以轻松部署到Heroku。
通过webpack开发服务器更新时,前端React应用程序将自动重新加载,而后端Express应用程序将通过nodemon独立地自动重新加载。
在本地启动应用
首先安装前端和后端依赖项。 在此目录中,运行以下命令:
yarn install
cd client
yarn install
cd ..
``
After both installations complete, run the following command in your terminal:
纱线起头
That's it, your app should be running on <http>. The Express serve