twopercenters
Science Score: 13.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (5.9%) to scientific vocabulary
Repository
Basic Info
- Host: GitHub
- Owner: Notebook-Factory
- Language: Jupyter Notebook
- Default Branch: main
- Size: 8.57 MB
Statistics
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
- Releases: 0
Metadata Files
README.md
twopercenters
- Create dokku es service
``` sudo dokku plugin:install https://github.com/dokku/dokku-elasticsearch.git elasticsearch
```
export ELASTICSEARCH_IMAGE="elasticsearch"
export ELASTICSEARCH_IMAGE_VERSION="7.17.23"
dokku elasticsearch:create citedb
- This should start the service, run
dokku elasticsearch:info citedbto figure out IP and port and figure out the service URL (e.g,172.17.0.3:9200). You can test it bycurl -X GET http://172.17.0.3:9200. If that works, in the.envfile:
ES_URL_LOCAL=http://172.17.0.3:9200
[!NOTE] This is to help indexing script access the elasticsearch service before the deployment. After the app is created and
citedbservice is linked to it,ELASTICSEARCH_URL=http://dokku-elasticsearch-citedb:9200will be exposed to the ENV of the application (seecitations_lib/utils.py).
- You need to create a python virtual environment that has dependencies of this repo installed. Once you activate it, then:
python elasticSearchIdx.py
once it is completed, test by:
curl http://172.17.0.3:9200/_cat/indices
you should see something like:
green open .geoip_databases zBjMlIZhSliA1rp181gxzA 1 0 33 0 30.9mb 30.9mb
yellow open career_cntry 4U3Yq18MTxu5NG0auwe8Sw 1 1 177 0 1.4mb 1.4mb
yellow open singleyr_inst JdbErfi6T5KpO00MtWG0-Q 1 1 30137 0 91.9mb 91.9mb
yellow open career _rlmlssYQjOqBt2mgBLbcA 1 1 270910 0 352.8mb 352.8mb
yellow open career_inst 7_46VzV4Rf6j_6zzo4ZHbA 1 1 38123 0 114.9mb 114.9mb
yellow open singleyr -NDFaaJ1Sdyis6eFVb4aRA 1 1 285533 0 331.1mb 331.1mb
yellow open singleyr_cntry EFEqBE6ERNGrUjrhTRbIYg 1 1 176 0 1.1mb 1.1mb
yellow open career_field rJ6SsU1XSp-1vXgeHjUbcg 1 1 23 0 234.3kb 234.3kb
yellow open singleyr_field KBG7FfvhSNubbSQZE2jruw 1 1 23 0 179.7kb 179.7kb
- Now you can deploy the application:
``` cd twopercenters dokku apps:create twopercenters dokku elasticsearch:link citedb twopercenters
git remote add dokku dokku@[vm.floating.ip]:my-dashboard git push dokku main:master ```
if successful:
dokku letsencrypt:enable twopercenters
Owner
- Name: NotebookFactory
- Login: Notebook-Factory
- Kind: organization
- Repositories: 9
- Profile: https://github.com/Notebook-Factory
Citation (citations_lib/__init__.py)
GitHub Events
Total
- Push event: 1
Last Year
- Push event: 1
Dependencies
- Flask_Caching ==2.0.2
- country_converter ==1.0.0
- dash ==2.8.1
- dash_bootstrap_components ==1.3.1
- dash_daq ==0.5.0
- elasticsearch *
- gunicorn *
- ipython ==8.11.0
- numpy ==1.21.5
- openpyxl ==3.0.10
- pandas ==1.5.2
- plotly ==5.13.0
- python-dotenv *