This is a quick-start client/server app and using React.js and Express.js
git clone https://github.com/dudewheresmycode/express-react-quickstart.git
cd express-react-quickstart
yarn
This project uses yarn workspaces to separate the /client
and /server
dependencies. Which allows us to install everything we need with one yarn
command.
Now that everything's installed, we can start everything with the develop
script.
yarn develop
This starts the React app in development mode, and the server with nodemon
to watch for file changes. Easy right?
yarn build
This command will build the production bundle for the React app.
yarn start
This command will start the server.