Skip to content

Commit

Permalink
update dist file + demo urls (#18)
Browse files Browse the repository at this point in the history
* update dist file + demo urls

* add instructions to change url to test locally
  • Loading branch information
aspedrosa authored Jan 31, 2022
1 parent ff9e096 commit 809f362
Show file tree
Hide file tree
Showing 7 changed files with 2,530 additions and 5 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
dist/*
!dist/geo-dropdown.min.js

bower_components/
node_modules/

Expand All @@ -14,7 +17,6 @@ __pycache__/
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
Expand Down
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,16 +76,19 @@ Portugal (wich is a country) geonameid is 2264397, so you can use the link /geod
```sh
npm install -g grunt bower serve

# download external dependencies
# download external dependencies. These are old and some of these versions are not in npm.
bower install

# build dist files
npm install # install used dependencies by grunt
grunt

# start a dev server to test demo.html
serve
```

If you open [http://localhost:3000/demo](http://localhost:3000/demo) you should be able to see the components working.

## Server Side:
### How to make it run
There is a docker-compose file to run this application. Therefore, if you want to run geodropdown, just go to geowebservice folder and run the following commands:
Expand All @@ -95,6 +98,8 @@ docker-compose build
./start.sh
```

Change the `url` attribute of the `geo-dropdown` components in demo.html from `https://emif-catalogue.eu/geodropdown/geodatabase/` to `http://localhost:8886/geodatabase/`.

### How to load data to the Web Service databases

**Note:** Data is automatically loaded with the start.sh script. You can ignore this section.
Expand Down
4 changes: 2 additions & 2 deletions demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@

<div class="example">
<!-- all identifiers by default (aggregation) -->
<p>Example2 (aggregation, reach level adm1):</p> <geo-dropdown url='http://bioinformatics.ua.pt/geodropdown/geodatabase/' d="ex2" reach="adm1"></geo-dropdown>
<p>Example2 (aggregation, reach level adm1):</p> <geo-dropdown url='https://emif-catalogue.eu/geodropdown/geodatabase/' d="ex2" reach="adm1"></geo-dropdown>
</div>

<div class="example">
<!-- all identifiers by default (aggregation) -->
<p>Example3 (no aggregation, reach level adm5, has answer):</p> <geo-dropdown url='http://bioinformatics.ua.pt/geodropdown/geodatabase/' id="ex3" continent="ex3_a" country = "ex3_b" adm1="ex3_c" adm2="ex3_d" adm3="ex3_e" adm4="ex3_f" adm5="ex3_g" answer='[{"continent":"Europe","country":"France","adm1":"Île-de-France","adm2":"Paris","adm3":"Paris","adm4":"Paris","adm5":"Paris 01"}]'></geo-dropdown>
<p>Example3 (no aggregation, reach level adm5, has answer):</p> <geo-dropdown url='https://emif-catalogue.eu/geodropdown/geodatabase/' id="ex3" continent="ex3_a" country = "ex3_b" adm1="ex3_c" adm2="ex3_d" adm3="ex3_e" adm4="ex3_f" adm5="ex3_g" answer='[{"continent":"Europe","country":"France","adm1":"Île-de-France","adm2":"Paris","adm3":"Paris","adm4":"Paris","adm5":"Paris 01"}]'></geo-dropdown>
</div>


Expand Down
1 change: 1 addition & 0 deletions dist/geo-dropdown.min.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion min/GeoDropdown.min.js

This file was deleted.

Loading

0 comments on commit 809f362

Please sign in to comment.