Closed smithandrewl closed 5 years ago
yarn start
doesn't starts the server, you'll have to launch it in a separate session. Create React App clears the output, so it's not recommended to load both using the same command because you won't have any logs.
You could also use the main's repo demo
folder as it's more up-to-date than this one.
Thanks for getting back so quickly. I made this issue for the "fix" I made for this. I just submitted it as a pull request.
No pb :) I'm just concerned about the output.
Expected behavior
yarn start
should start the back-end and the front-end, and open the site in a browser. Editing and then saving changes should cause the client to update, without having to runyarn build
ornode server.js
.Actual behavior
yarn start
starts the client, which cannot connect to the back-end API since it is not running. The client loads in the browser with the messageAn error occurred while fetching configuration: Unable to fetch configuration: Internal Server Error (500)
.To see changes, you must run
yarn build
followed bynode server.js
Steps to reproduce
git checkout mozaik-2
yarn install
yarn build
yarn start