diff --git a/.gitignore b/.gitignore index 670174b8..9461d8b4 100644 --- a/.gitignore +++ b/.gitignore @@ -41,17 +41,16 @@ npm-debug.log yarn-error.log testem.log /typings +.nx/cache +container.sif # System Files .DS_Store Thumbs.db # Generated assets -*/assets/generated -*/assets/schema +**/assets/generated +**/assets/schema # Proxy Configuration proxy.config.json - - -.nx/cache \ No newline at end of file diff --git a/data-processor/constants.sh b/data-processor/constants.sh index c938dc91..260290df 100644 --- a/data-processor/constants.sh +++ b/data-processor/constants.sh @@ -22,7 +22,7 @@ EDB="$OUT/a2agc.db.e" DATA_SOURCES="$ORIG/box-health/[Box Health] Final Datasets" -SCHEMA_DIR="$THIS/../website/src/assets/schema" +SCHEMA_DIR="$THIS/../src/assets/schema" SCHEMA_NAME=A2AGC SCHEMA="$SCHEMA_DIR/$SCHEMA_NAME.public.xml" diff --git a/data-processor/schemaspy.properties b/data-processor/schemaspy.properties index 7d006937..c29c71d3 100644 --- a/data-processor/schemaspy.properties +++ b/data-processor/schemaspy.properties @@ -15,7 +15,7 @@ schemaspy.I=.*_raw schemaspy.meta=schemaspy.meta.xml # output dir to save generated files -schemaspy.o=../website/src/assets/schema +schemaspy.o=../src/assets/schema # Use vizjs instead of graphviz schemaspy.vizjs=true diff --git a/data-processor/scripts/13-vis-geomap-opioid-deaths.sh b/data-processor/scripts/13-vis-geomap-opioid-deaths.sh index b26674ac..052050e6 100755 --- a/data-processor/scripts/13-vis-geomap-opioid-deaths.sh +++ b/data-processor/scripts/13-vis-geomap-opioid-deaths.sh @@ -4,4 +4,4 @@ set -ev OUT_DIR=${OUT}/site-data -sqlite3 -header -csv ${DB} < ../website/src/assets/pages/vis1-geomap-of-opioid-deaths/data.sql > ${OUT_DIR}/vis-geomap-opioid-deaths.csv \ No newline at end of file +sqlite3 -header -csv ${DB} < ../src/assets/pages/vis1-geomap-of-opioid-deaths/data.sql > ${OUT_DIR}/vis-geomap-opioid-deaths.csv \ No newline at end of file diff --git a/data-processor/scripts/13-vis2-data.sh b/data-processor/scripts/13-vis2-data.sh index c05f82c5..cc042684 100755 --- a/data-processor/scripts/13-vis2-data.sh +++ b/data-processor/scripts/13-vis2-data.sh @@ -7,6 +7,6 @@ OUT_DIR=${OUT}/site-data/vis2-data mkdir -p ${OUT_DIR} -sqlite3 -header -csv ${DB} < ../website/src/assets/pages/vis2-age-and-gender/data.sql > ${OUT_DIR}/death-counts.csv +sqlite3 -header -csv ${DB} < ../src/assets/pages/vis2-age-and-gender/data.sql > ${OUT_DIR}/death-counts.csv python3 ${SRC_DIR}/census_data.py ${SRC_DIR}/census-data -o ${OUT_DIR}/census-counts.csv diff --git a/data-processor/scripts/13-vis4-data.sh b/data-processor/scripts/13-vis4-data.sh index 5619395a..a402d0b4 100755 --- a/data-processor/scripts/13-vis4-data.sh +++ b/data-processor/scripts/13-vis4-data.sh @@ -5,4 +5,4 @@ OUT_DIR=${OUT}/site-data/visualization4 mkdir -p ${OUT_DIR} -sqlite3 -header -csv ${DB} < ../website/src/assets/pages/vis4-combined-visualization/data.sql > ${OUT_DIR}/data.csv +sqlite3 -header -csv ${DB} < ../src/assets/pages/vis4-combined-visualization/data.sql > ${OUT_DIR}/data.csv diff --git a/data-processor/scripts/13-vis5-data.sh b/data-processor/scripts/13-vis5-data.sh index 9e67dca1..99c4ad89 100755 --- a/data-processor/scripts/13-vis5-data.sh +++ b/data-processor/scripts/13-vis5-data.sh @@ -6,4 +6,4 @@ OUT_DIR=${OUT}/site-data/visualization5 mkdir -p ${OUT_DIR} -sqlite3 -header -csv ${DB} < ../website/src/assets/pages/vis5-opioid-trajectories/data.sql > ${OUT_DIR}/data.csv +sqlite3 -header -csv ${DB} < ../src/assets/pages/vis5-opioid-trajectories/data.sql > ${OUT_DIR}/data.csv diff --git a/data-processor/scripts/13-vis6-data.sh b/data-processor/scripts/13-vis6-data.sh index 0bec16ff..1e9e258f 100755 --- a/data-processor/scripts/13-vis6-data.sh +++ b/data-processor/scripts/13-vis6-data.sh @@ -6,6 +6,6 @@ OUT_DIR=${OUT}/site-data/visualization6 mkdir -p ${OUT_DIR} -sqlite3 -header -csv ${DB} < ../website/src/assets/pages/vis6-maps-of-health/data-aggregate.sql > ${OUT_DIR}/data-aggregate.csv +sqlite3 -header -csv ${DB} < ../src/assets/pages/vis6-maps-of-health/data-aggregate.sql > ${OUT_DIR}/data-aggregate.csv -sqlite3 -header -csv ${DB} < ../website/src/assets/pages/vis6-maps-of-health/data.sql > ${OUT_DIR}/data.csv +sqlite3 -header -csv ${DB} < ../src/assets/pages/vis6-maps-of-health/data.sql > ${OUT_DIR}/data.csv diff --git a/data-processor/scripts/20-ng-generate-site.sh b/data-processor/scripts/20-ng-generate-site.sh index 4d0c0c2b..0b200d75 100755 --- a/data-processor/scripts/20-ng-generate-site.sh +++ b/data-processor/scripts/20-ng-generate-site.sh @@ -2,7 +2,7 @@ source constants.sh set -ev -cd ../website +cd ../ # Clear old data and copy latest rm -rf src/assets/generated diff --git a/data-processor/scripts/20x-ng-serve-site.sh b/data-processor/scripts/20x-ng-serve-site.sh index b0acd99b..82e24c3c 100755 --- a/data-processor/scripts/20x-ng-serve-site.sh +++ b/data-processor/scripts/20x-ng-serve-site.sh @@ -2,7 +2,7 @@ source constants.sh set -ev -cd ../website +cd ../ # Clear old data and copy latest rm -rf src/assets/generated diff --git a/data-processor/scripts/20x-serve-generated-data.sh b/data-processor/scripts/20x-serve-generated-data.sh index f043250d..217623d6 100755 --- a/data-processor/scripts/20x-serve-generated-data.sh +++ b/data-processor/scripts/20x-serve-generated-data.sh @@ -2,7 +2,7 @@ source constants.sh set -ev -cd ../website +cd .. # Clear old data and copy latest rm -rf src/assets/generated diff --git a/data-processor/scripts/20x-serve-site.sh b/data-processor/scripts/20x-serve-site.sh index be9a30f2..129509c5 100755 --- a/data-processor/scripts/20x-serve-site.sh +++ b/data-processor/scripts/20x-serve-site.sh @@ -2,5 +2,5 @@ source constants.sh set -ev -http-server -c-1 --cors=* -p $DEV_PORT ../website/dist +http-server -c-1 --cors=* -p $DEV_PORT ../dist