Coder Social home page Coder Social logo

rahenrique / rah.collectiveaccess.boilerplate Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 77 KB

CollectiveAccess Boilerplate, using Docker containers, with PHP, Apache and MySQL. This repository is solely intended as a starting point for a local development environment for CollectiveAccess implementations.

Dockerfile 16.43% Shell 1.27% PHP 82.30%
apache collectiveaccess mysql php docker docker-compose elasticsearch

rah.collectiveaccess.boilerplate's Introduction

CollectiveAccess Boilerplate

CollectiveAccess Boilerplate, using Docker containers, with PHP, Apache and MySQL. This repository is solely intended as a starting point for a local development environment for CollectiveAccess implementations. I am not affiliated with any company or products mentioned or used in this repository.

Work In Progress. See the issues page for more information.

Prerequisites

Before starting, you will need to have the following tools installed on your machine:

Installation (Local Development)

# Clone this repository
$ git clone https://github.com/rahenrique/rah.collectiveaccess.boilerplate.git

# Run the application
$ docker-compose up

This will install the two CollectiveAccess applications: Pawtucket (the front-end application) and Providence (the back-end, administrative application)

To access each application:

Installing a profile

If you try to access the Pawtucket application for the first time, it will tell you that you need a funcioning Providence installation in order to Pawtucket to work.

To do so, just access the Providence application for the first time. A message will show in the interface, like:

It looks like you have not installed your database yet. Check your configuration or run the installer.

Click to run the installer, or access http://localhost:8080/providence/install/

Select one of the available installation profiles. At the end of this proccess, your database will be created with the corresponding tables and initial data, and a admin user will be created. Be sure to save the provided login and password after the install.

That's it!

See the official documentation to start cataloging your art assets.

Troubleshooting

vm.max_map_count is too low

In case your Elasticsearch container fails to build, and you see an error message telling you that vm.max_map_count is too low, perhaps you have to run the following command to increase this value:

sudo sysctl -w vm.max_map_count=262144

After that, try to run the container again. To permanently fix this issue, edit the /etc/sysctl.conf file and add the line:

vm.max_map_count=262144

Reference: docker-library/elasticsearch#111

GraphQL API not working

The branch currently in use for Providence is set as 1.7.16. In this Collective Access' Providence branch, the GraphQL API implementation is not ready yet.

In order to use the current GraphQL API implementation, please edit the files:

  • /.docker/providence/Dockerfile: change the variable ENV CA_PROVIDENCE_VERSION=1.7.16 to ENV CA_PROVIDENCE_VERSION="dev/graphql-api"
  • /apps/providence/app/conf/local/app.conf: comment the line # search_engine_plugin = ElasticSearch

Rebuild the container. This will enable the GraphQL API to work, but unfortunetelly will break the Elasticsearch plugin funcionality.

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.