Skip to content

DPO Packrat: Packrat is currently prototype/demonstration software. We are working on a new version, so stay tuned!

License

Notifications You must be signed in to change notification settings

dalbanese/dporepo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Packrat

Packrat is currently prototype/demonstration software. We are working on a new version, so stay tuned!

Requirements

  • PHP 7.2
  • Symfony framework 3.4
  • MySQL 5.7
  • jQuery 1.12

Installation

Install webserver and database

TODO: needs specification for supported environments

Prepare website

Create website root Create empty MySQL database, and user account. Enable ldap extension and PDO extension, if not enabled, in php.ini

Clone the Repositories

In addition to the repository code you will need the JSON schemas.

In the web root-

git clone [email protected]:Smithsonian/dporepo.git

In the /web path under the web root create a directory "json". Inside web/json-

git clone [email protected]:Smithsonian/dporepo-schemas.git

Parameters (app/config/parameters.yml)

If you have a filled-out parameters.yml file, move it into the app/config directory.

If not, you will be prompted during the installation to provide these settings.

The database settings must match the database and user account created in step Prepare website.

Install using Composer

  • Change directory into the web root. Run- composer install

  • If PHP runs out of memory you can brute-force it to use unlimited memory: php -d memory_limit=-1 /usr/local/bin/composer install

  • TODO: Right now users have to disable the EDAN client within composer.json in order for install to work.

Launch UI

Using a browser navigate to the homepage.

If you see PDO errors (can't find file), set unix_socket underneath doctrine:, dbal: within app/config/config.yml

Click Install

If installation says it succeeded but you have no database, the most likely culprit is your version of MySQL doesn't support json fields.

  • TODO: Temp cheat, change the 2 JSON fields to varchar(8000) within database_create.sql

Click Login

Click Register, and create a new user account.

You should now have access to all repo functions.

About

DPO Packrat: Packrat is currently prototype/demonstration software. We are working on a new version, so stay tuned!

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 84.8%
  • PHP 9.0%
  • HTML 4.9%
  • CSS 1.2%
  • Batchfile 0.1%