This should work with Node 8 and yarn. I haven't tested other set ups.
- Navigate to your copy on github
- Clone it
- Invite your pair as a collaborator
The front end should look something like this:
├── data
│ └── data.js
├── dist
│ └── index.html
├── logs
├── package.json
├── pacts
├── src
│ ├── App.js
│ ├── components
│ │ ├── Button.js
│ │ ├── Button.test.js
│ │ ├── Display.js
│ │ └── index.js
│ ├── helpers
│ │ ├── httpRequests.js
│ │ ├── httpRequests.test.js
│ │ └── index.js
│ └── index.js
└── webpack.config.js
cd frontend
yarn # or npm install
yarn start # or npm start
The very rudimentary front end should now be running on localhost:3000
vi frontend/src/helpers/httpRequests.test.js
It should look something like this:
├── app.js
├── app.test.js
├── data
│ └── data.js
├── package.json
└── pacts
yarn start # or npm start
The back end should now be running on localhost:5000
In the frontend, click the 'Get data from local API' button You should see a change in the contents underneath.