A tool to collect and display watershed wellness indicators for the International Seaport Museum
- Yarn
Install the application and all required dependencies.
./scripts/setup
The application requires a MapBox API key.
First, create a .env
file in the src/app/
repo.
Next, add the following line to that file:
REACT_APP_MAPBOX_API_KEY=<YOUR_API_KEY_HERE>
Finally, start the VM, log on, and run the development server.
vagrant up
vagrant ssh
./scripts/update.sh
./scripts/server.sh
Service | Port |
---|---|
Create React App Server | 3000 |
./scripts/test
Name | Description |
---|---|
cibuild |
Build project for CI |
lint |
Lint source code |
server |
Run Create React App Server |
setup |
Install project dependencies |
test |
Run unit tests |
update |
Update project dependences |
analyze |
Analyze the app bundle and output results in JSON |
To add a new NPM package to the project:
yarn add {package-name}
- We usually pin packages to a specific version to minimize build errors.
- For packages in the regular/non-dev dependencies section of
package.json
, manually add the package name to thevendor
array inwebpack.config.json