Boatnet provides a suite of tools for collecting fisheries scientific survey and observer monitoring data while aboard commercial, recreational, and NOAA vessels. These include a tablet app for observers and surveys to capture their haul-level catch information and a mobile app for captains to keep track of observer-monitored trips.
For more details about each project, please refer to the Wiki
For those only interested in running the project follow the How to build and run section and ignore the rest. The remaining sections are for development purposes only. Note: We are currently working on simplifying the process and in the future you can just download an executable and run the application.
Note that without a CouchDB, large sections of the application will not function correctly. We are working on releasing a test version of the CouchDB data.
Please refer to the Wiki for project descriptions. Also, see miscellaneous supporting Docs.
Boatnet contains multiple projects located in different directories. Note that all of the projects are currently a work in progress!
Directory: apps/obs-wcgop-optecs
Directory: apps/obs-web
Directory: apps/surv-*
Boatnet uses the lerna + yarn workspace monorepo pattern.
-
Install Node.js - download here
-
Install
yarn
-
npm install -g yarn
NOAA Windows 10 Users may need to set a couple environment variables:
- in System Variables -
Path
add:C:\Users\\[User.Name]\AppData\Roaming\npm\
- in System Variables -
NODE_PATH
set to:C:\Users\\[User.Name]\AppData\Roaming\npm\
- in System Variables -
-
(OPTIONAL) Install Visual Studio Code - download here (We use and recommend this IDE for development)
-
Clone the repository:
git clone [email protected]:nwfsc-fram/boatnet.git
-
Install
lerna
globally:npm install -g lerna
-
Run
lerna bootstrap
(runs npm install, builds single node_modules) -
Run
lerna clean
(cleans node_modules in subfolders) -
Run
lerna run build
(builds all apps and libraries. This is optional, but should be performed prior to pushing changes, to ensure all projects still build correctly.) -
When running the app locally, you'll need to run the dev-auth-server running in order to login. Do this by following the instructions here
-
Navigate to the project you need, e.g.
cd apps/example
andyarn serve
-
See more specific
lerna
instructions, troubleshooting, and development setup here.