neurogenomics / Kayaking

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Kayaking

Frontend

Installation

To install, run:

cd app
yarn install

Running the app

To run the app, use:

cd app
yarn start

Then download the ExpoGo app on your smartphone and scan the QR code displayed in the terminal Alternatively use yarn android or yarn ios to emulate the app on your computer (requires emulators to be installed)

Linting & testing

To lint run:

cd app
yarn lint

To test run:

cd app
yarn test

Backend

Running the server

To run the server locally,

  1. set environment variables: ADMIRALTY_API_KEY= and ENVIRONMENT="dev"
  2. run the following commands:
cd backend
./gradlew run

To test the app run the following commands:

cd backend
./gradlew build

The app should now be running on http://127.0.0.1:8080

Alternatively, open the backend folder in an IDE (Intellij Ultimate recommended) and use the run button.

Continuous Deployment

Any changes pushed to the main branch, will be deployed to https://kayaking-aa6c532cb1b2.herokuapp.com/

Config files

The backend config file (backend/config.yaml) contains information such as the variable names in the grib files being accessed.

It also contains the way the services are deployed. Currently for wind and tide only grib is supported.

To see the variable names for any grib file download the NetCDF file viewer here https://downloads.unidata.ucar.edu/netcdf-java/ then run java -Xmx1g -jar toolsUI.jar or replace the filename with the tool file name.

About


Languages

Language:Kotlin 71.5%Language:TypeScript 28.4%Language:JavaScript 0.0%Language:Procfile 0.0%