Skip to content
This repository has been archived by the owner on Jul 15, 2020. It is now read-only.
/ bf-api Public archive

Web service providing automated global vector shoreline extraction.

Notifications You must be signed in to change notification settings

venicegeo/bf-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Beachfront API

The beachfront API (bf-api) project is a standalone web service which provides the Beachfront UI and other external projects with a unified interface for creating and querying automated shoreline detection data.

Requirements

Before building and/or running bf-api, please ensure that the following components are available and/or installed, as necessary:

Ensure that the nexus url environment variable ARTIFACT_STORAGE_URL is set:

$ export ARTIFACT_STORAGE_URL={Artifact Storage URL}

If running bf-api locally, the following components are also necessary:


Setup, Configuring, & Running

Setup

Create the directory the repository must live in, and clone the git repository:

$ mkdir -p {PROJECT_DIR}/src/github.com/venicegeo
$ cd {PROJECT_DIR}/src/github.com/venicegeo
$ git clone [email protected]:venicegeo/bf-api.git
$ cd bf-api

Note: In the above commands, replace {PROJECT_DIR} with the local directory path for where the project source is to be installed.

Configuring

The src/main/resources/application.properties file controls URL information for postgreSQL, ia-broker, and geoserver connection configurations. By default, PostgreSQL is assumed to be running locally on port 5432. If this needs to be changed, this can be done through application.properties.

Building & Running locally

To build and run the Beachfront API locally, navigate to the project directory and run:

$ mvn clean install -U spring-boot:run

Running Unit Tests

To run the Beachfront API unit tests from the main directory, run the following command:

$ mvn test