From af8f68c87f1963db5a458087931cd638207765cb Mon Sep 17 00:00:00 2001 From: Nicholas Kwon Date: Wed, 25 May 2022 14:21:14 -0700 Subject: [PATCH] Add note about using Node 12 --- client/README.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/client/README.md b/client/README.md index baadc87ee..23e5a7049 100644 --- a/client/README.md +++ b/client/README.md @@ -2,21 +2,23 @@ ### Setting up the project for the first time? - - From this directory, `npm run setup` to install front end dependencies and create an `.env` file - - get a [Mapbox](https://account.mapbox.com/auth/signin/) API token and add that to your `.env` file as the `MAPBOX_TOKEN` - - get the `API_URL` from a team member and add that to your `.env` file +- Install Node 12. You can use [nvm](https://github.com/nvm-sh/nvm) to install this particular version of Node. +- From this directory, `npm run setup` to install front end dependencies and create an `.env` file +- get a [Mapbox](https://account.mapbox.com/auth/signin/) API token and add that to your `.env` file as the `MAPBOX_TOKEN` +- get the `API_URL` from a team member and add that to your `.env` file Setup complete! ### Development - - From this directory, `npm start` to check your `.env` file and start webpack dev server +- From this directory, `npm start` to check your `.env` file and start webpack dev server Your browser should open to `0.0.0.0:3000` and the site should render. Webpack will detect saved code changes, rebuild the bundle in memory, and update the site in your browser. Stop webpack dev server with `Ctrl-C`. ### Useful commands + ``` npm run setup # install dependencies listed in package.json and check .env file npm run check-env # checks .env file exists and has all required keys