Skip to content

Commit

Permalink
Adds dynamic data search components via underlying elasticsearch engi…
Browse files Browse the repository at this point in the history
…ne. Elasticsearch index built dynamically, with rational data type mappings. Faceted search with numeric and text defaults built based on elasticsearch index fields. Counts and facets automatically update based on selections. Search box not functioning and still need to get elasticsearch results extracted into the app to enable map and detailed results rendering based on current selections.
  • Loading branch information
adadiehl committed Apr 30, 2019
1 parent abe9607 commit 8dd0497
Show file tree
Hide file tree
Showing 395 changed files with 153,440 additions and 51 deletions.
19 changes: 9 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
# docker run -it -v $(pwd):/host/$(basename $(pwd)) adadiehl/MERN_stack
# The mongoDB component is cloud-based in this stack. See https://mlab.com/


FROM node:11.12.0-stretch
MAINTAINER Adam Diehl <adadiehl@umich.edu>

# Expose the ports needed for node.js and express
EXPOSE 3000
EXPOSE 3001
EXPOSE 9200

ENV DEBIAN_FRONTEND noninteractive

Expand All @@ -26,8 +26,7 @@ RUN curl -o /usr/local/bin/gosu -SL "https://github.com/tianon/gosu/releases/dow
&& chmod +x /usr/local/bin/gosu

# We need to install conda and pybedtools packages to enable on-the-fly intersections.
RUN apt-get install bedtools
RUN apt-get update && apt-get -y --no-install-recommends install python-setuptools python-dev build-essential
RUN apt-get update && apt-get -y --no-install-recommends install bedtools python-setuptools python-dev build-essential
RUN easy_install pip
RUN pip install --upgrade virtualenv
RUN pip install pybedtools
Expand All @@ -38,17 +37,17 @@ ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]


# Intall emacs to enable in-place file editing
RUN apt-get update && apt-get -y --no-install-recommends install emacs
RUN apt-get -y --no-install-recommends install emacs

# Install and configure elasticsearch and dependencies
RUN apt-get install openjdk-8-jre
RUN apt-get -y --no-install-recommends install openjdk-8-jre
RUN wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
RUN apt-get install apt-transport-https
RUN apt-get install -y --no-install-recommends apt-transport-https
RUN echo "deb https://artifacts.elastic.co/packages/7.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-7.x.list
RUN sudo apt-get update && sudo apt-get install elasticsearch
RUN sudo apt-get update && apt-get -y --no-install-recommends install elasticsearch
RUN sudo update-rc.d elasticsearch defaults 95 10

# Install packages and dependencies for the web app
RUN npm i -g create-react-app
RUN npm i -S axios mongoose express body-parser morgan concurrently
RUN npm install --save express-fileupload
#RUN npm i -g create-react-app
#RUN npm i -S axios mongoose express body-parser morgan concurrently
#RUN npm install --save express-fileupload
14 changes: 14 additions & 0 deletions backend/node_modules/@elastic/elasticsearch/.codecov.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions backend/node_modules/@elastic/elasticsearch/.dockerignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

202 changes: 202 additions & 0 deletions backend/node_modules/@elastic/elasticsearch/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 8dd0497

Please sign in to comment.