From b7f7571b8d44837e710795f3b0a872edabb1136b Mon Sep 17 00:00:00 2001 From: Jordan Eldredge Date: Wed, 21 Sep 2022 20:09:32 -0700 Subject: [PATCH] Add instructions for developing the client and server at the same time --- packages/skin-museum-client/README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/packages/skin-museum-client/README.md b/packages/skin-museum-client/README.md index 43299bba..17f78b80 100644 --- a/packages/skin-museum-client/README.md +++ b/packages/skin-museum-client/README.md @@ -12,6 +12,22 @@ yarn build-webamp yarn start ``` +By default the client will connect to the production API. This works great for client-only changes. If you need to make changes which span both the client and the server, you will need to make some changes. + +Start the server locally: + +```bash +cd pacakges/skin-database +yarn +yarn start +``` + +This should start the server on port 3001. + +Now update the `API_URL` constant in `src/constants.js` to `"http://localhost:3001"`. This will tell the client to connect to the local server instead of the production API. + +Finally, in a separate terminal, start the client as outlined at the top of this section. + ## Deployment The Skin Museum client is deployed using Netlify. See the `netlify.toml` file in this same directory for details about how that works. The Netlify site is configured to use this subdirectory as it's base directory. \ No newline at end of file