diff --git a/README.md b/README.md index 45789108f52da4beec08e286ad931de2288d2698..83557f2fffa314afc15b44969b1cf23d2e86039c 100644 --- a/README.md +++ b/README.md @@ -1,41 +1,16 @@ # GeoSTAC - Forked CartoCosmos Leaflet webmap with added ability to discover USGS Analysis Ready Data (ARD) holdings using the SpatioTemporal Asset Catalogs (STAC) API. -Repository for the GeoSTAC Capstone Team. +## Local Requirements -### Building and running on localhost -# -Install conda: -* [Windows](https://docs.conda.io/projects/conda/en/latest/user-guide/install/windows.html) -* [Mac](https://docs.conda.io/projects/conda/en/latest/user-guide/install/macos.html) -* [Linux](https://docs.conda.io/projects/conda/en/latest/user-guide/install/macos.html) +Anaconda or Miniconda installation -Clone repository -```sh -git clone https://github.com/GeoSTAC/CartoCosmos-with-STAC.git -``` - -Once the repository is cloned ```cd``` in to the ```app folder``` -ie : -```sh -cd cloned_location/GeoSTAC/CartoCosmos/app -``` -To setup the conda environment run the following command. - -```sh -conda env create -f environment.yml -``` - -Once the conda environment is created run the following command to activate it. - -```sh -conda activate GeoSTAC -``` - -Then to install the project run +## Local Development -```sh -npm install -``` +- pull and cd into project root +- build environment in conda: `conda env create -f environment.yml`. This will create a `GeoSTAC` environment with nodejs +- activate your conda environment: `conda activate GeoSTAC` +- run `npm install` from the project root +- run `npm start` to launch your local development server. Changes should automatically refresh in the browser ##### To create a production build: @@ -44,11 +19,3 @@ npm run build ``` This will create a folder "dist" with all of the production files needed. - -##### To run the development server: - -```sh -npm start -``` - -This will open a development server on port 8000 which will automatically compile and update in the browser window on save. diff --git a/environment.yml b/environment.yml index ba144e20ea90a2dddd7c3053c5eacd5d1f17d7b9..ab536bb407c0974f5c457e3972858d40c605441d 100644 --- a/environment.yml +++ b/environment.yml @@ -3,5 +3,4 @@ channels: - conda-forge - defaults dependencies: - - nodejs=16.13.1=hb931c9a_0 - + - nodejs diff --git a/src/index.html b/src/index.html index ea7f50e6d8930ce88051afbbc35f1cd3922fb539..bd5674d9f65d6fc027e2c5626275a2d82b93a123 100644 --- a/src/index.html +++ b/src/index.html @@ -6,7 +6,7 @@ name="viewport" content="minimum-scale=1, initial-scale=1, width=device-width" /> - <title>CartoCosmos</title> + <title>GeoSTAC</title> </head> <body> <div id="map"></div> diff --git a/src/js/AstroDrawFilterControl.js b/src/js/AstroDrawFilterControl.js index b1c90827af3cd2624e647000e870640d4c61a339..b77ad8af5d09159a10dfb0523717f76beecf6670 100644 --- a/src/js/AstroDrawFilterControl.js +++ b/src/js/AstroDrawFilterControl.js @@ -161,7 +161,7 @@ export default L.Control.AstroDrawFilterControl = L.Control.Draw.extend({ bboxCoordArr[1][0], bboxCoordArr[1][1] ]; - let queryString = "bbox=" + "[" + bboxArr + "]"; + let queryString = "bbox=" + bboxArr; return queryString; },