- From this directory,
npm run setupto install front end dependencies and create an.envfile - get a Mapbox API token and add that to your
.envfile as theMAPBOX_TOKEN - get the
API_URLfrom a team member and add that to your.envfile
Setup complete!
- From this directory,
npm startto check your.envfile 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.
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
npm start # check .env file and start webpack dev server
npm run dev # start webpack dev server (no .env check)
npm run build # run webpack in production mode - output is placed in dist directory
npm run lint # lint javascript in client directory