Git Product home page Git Product logo

pace-admin's Introduction

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.template .env
make install
make cleardb
make start_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 some terminals

make docker
make client
make -B server
make migration_console

It's worth running make install_js every now and then to make sure your packages are up-to-date.

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

pace-admin's People

Contributors

dependabot[bot] avatar jeffspies avatar jeremyf avatar rickjohnson avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.