pulibrary / dpul-collections

An inspiring environment for global communities to engage with diverse digital collections

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DpulCollections

To run the development database type: lando start

To start your Phoenix server:

  • Run mix setup to install and setup dependencies
  • Start Phoenix endpoint with mix phx.server or inside IEx with iex -S mix phx.server

Now you can visit localhost:4000 from your browser.

Ready to run in production? Please check our deployment guides.

Running Tests

mix test

This will run all your tests and store your coverage data in ./cover.

Checking Formatting

mix format will format your code mix format --check-formatting will tell you formatting that must be done.

Build & Run Production Docker Image Locally

Build Docker Image: docker build . -t dpul-collections

The SECRET_KEY_BASE below is just a filler one for the purpose of testing locally.

Run Docker Image: docker run -t -p 4000:4000 -e DATABASE_URL='ecto://postgres:@host.docker.internal:5434/database' -e SECRET_KEY_BASE='B8rwzeX3DFLveiJ4cP28lRGc0PWdEr8ZF/hDoPRucw95Nzf2IPnu7lhEB+Yldx6Z' dpul-collections

Deployment

  1. Connect to VPN
  2. BRANCH=<branch> ./bin/deploy staging

Figgy Fixtures

We copy fixtures from Figgy's production database into a Docker container so that we can easily use it for testing indexing. To rebuild that container:

brew install lastpass-cli cd figgy-fixture-container && ./build-and-push.sh

Learn more

About

An inspiring environment for global communities to engage with diverse digital collections


Languages

Language:Elixir 59.5%Language:HTML 18.6%Language:Shell 9.2%Language:JavaScript 4.7%Language:Dockerfile 3.6%Language:Ruby 2.1%Language:HCL 2.0%Language:CSS 0.2%Language:Batchfile 0.1%