Skip to content

Publication Activity Collection Environment - Admin Tools and DB

License

Notifications You must be signed in to change notification settings

221B-io/pace-admin

 
 

Repository files navigation

pace-admin

Publication Activity Collection Environment (PACE) Admin Tools and DB

A pilot project under development to investigate ways to streamline and improve the collection, reporting, and analysis of related publication information for the subsequent annual reporting process for campus centers and institutes. It is a time consuming process for each center/institute to determine scholarly productivity by polling faculty, reviewing their CVs, etc., where confidence in the data collected is crucial to ensure good investment decisions of University resources.

This pilot project will prototype a new process that automates data collection from internal and external sources and reporting, as well as integrate validation steps to increase confidence in data considered.

Starting from scratch

cp .env.example .env
make install
make cleardb
make docker
make migrate
make newdb

Note: When running make migrate, you may get the following error:

cd hasura && hasura migrate apply && cd ..
INFO hasura cli is up to date                      version=1.3.2
FATA[0002] version check: failed to get version from server: failed making version api call: Get http://localhost:8002/v1/version: EOF
make: *** [migrate] Error 1

If you get the above error, give a few minutes then try again.

Open several terminals

make docker && make logs
make client
make -B server
make migration-console

User Management

Create your Auth Front End Credentials:

  • http://localhost:8001
  • Select User admin
  • Use Keycloak credentials in .env
  • Go to Manage > Users and add a user for yourself
  • Edit user's Credentials; Add a password and uncheck "Temporary"

Propogate your email into the Hasura users table:

  • In http://localhost:9695/console
  • Select the "Data" tab and scroll to users table.
  • Select "Insert Row" and add the email address from the above Auth Front End Credentials.

Production

You may need to change the following variables in your .env file

GRAPHQL_END_POINT=http://localhost:8002/v1/graphql
IMAGE_HOST_URL=http://localhost:8000/

To run client and server as daemon, install and run pm2:

npm install pm2 -g

Then to setup processes to run as daemons

pm2 start 'make client'
pm2 start 'make -B server'

Then run check logs to see status

pm2 logs

And check status of processes

pm2 monit

Finally once confirmed running correctly configure startup script they restart when the machine is restarted

pm2 startup

Run the command it specifies and if successful run the following to save the current process list to be restarted when pm2 restarts

pm2 save

Production - Harvest Data from Scopus

Production - Generate Thumbnails and harvest PDFs for publications

Production - Dashboard Data

When you get to a point where publications have been reviewed and approved for a center/institute you can load data into the dashboard by running

make dashboard-ingest

Modules

  • Client - the UI tool for administering PACE Administration data.
  • Ingest - responsible for loading data into the adminsitration system.

TODO (8/6/2021 - 4:00 PM)

Lives in

Able to come to lab

Lab (study) age range

Subject timer for current lab

Participant, family, call notes

Search

3.0 - 3.364

filters for assign: date add, created, participated

Where they come from - Facebook (open field)

About

Publication Activity Collection Environment - Admin Tools and DB

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 47.4%
  • Vue 37.9%
  • JavaScript 13.0%
  • Makefile 1.0%
  • HTML 0.2%
  • PLpgSQL 0.2%
  • Other 0.3%