Giter Site home page Giter Site logo

jedahan / barnes-collection-www Goto Github PK

View Code? Open in Web Editor NEW

This project forked from barnesfoundation/barnes-online-collection

0.0 1.0 0.0 11.53 MB

collection frontend

License: GNU General Public License v3.0

HTML 37.14% JavaScript 36.83% CSS 26.01% Shell 0.02%

barnes-collection-www's Introduction

Barnes Collection Online

This project was bootstrapped with Create React App.

Development Installation

  1. Clone this repository.
  2. $ npm install
  3. You'll also want the following installed on your machine:
  • Elasticsearch:
    brew install elasticsearch
  • Kibana:
    brew install kibana
  • git-crypt:
    brew install git-crypt
  1. Copy .env-example to a new file .env in the root directory. You will need to define each of the environment variables included in the sample file. You can alternatively find a completed .env file in the copy of this project repo on the Barnes admin server.
  2. $ npm run build to build the app.
  3. $ npm start to run the app.

Production Installation

  1. Clone this repository
  2. $ npm install
  3. Create a .env file as above
  4. Create a .htpasswd file with a username and encrypted password in the root of this directory, using htpasswd
  5. $ npm run build
  6. $ npm install -g pm2
  7. $ pm2 start ecosystem.json

Technical Stack

This project uses everything included with create-react-app, plus Redux, React Router, and other smaller dependencies.

This project assumes you have a separate Elasticsearch instance with the collection data and an S3 bucket with the images, following the Flickr convention.

API

This project wraps all calls to Elasticsearch in its own API. It uses the elasticsearch npm module and has the following routes:

GET /api/objects/:object_id returns the art object matching the :object_id

GET /api/search returns 10 art objects matching a query q, which is formatting according to this documentation

POST /api/objects/:object_invno/download returns a signed object url upon submitting the Wufoo form with the necessary fields.

barnes-collection-www's People

Contributors

erchaves avatar rnackman avatar micahwalter avatar catarak avatar barnesfoundation-admin 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.