An API providing data to the Mind the Gap Frontend at http://gitlab.archimedes.digital/archimedes/mindthegap-orpheus. Built with express
and graphql
. The application is used for easily making digital collections interfaces. The data model is a simple implementation of a multitenant application that supports many different Projects and their corresponding Collections and Items. User accounts are shared across the application.
First, clone this repository. Ensure you have installed yarn
, node 8.x, Mongo, and Redis installed on your local machine or configure the appropriate .env.*.local
file with credentials as necessary to connect to your Mongo and Redis data sources. Then run the following commands:
Install dependencies:
yarn
Start application:
yarn start
The application GraphiQL API explorer should be available at http://localhost:3001/graphiql.
Priority of environment variables in .env
files (client and server):
-
Development:
.env.development.local
.env.development
.env.local
.env
-
Production:
.env.production.local
.env.production
.env.local
.env
!IMPORTANT do NOT commit .env*.local
files to the repository. These should be used for personal configuration and secret values.