- Install the node version listed in the package.json via https://nodejs.org/en/
- Run
npm installin your terminal - Run
npm testto make sure everything is kosher
More configuration information can be inferred from config.js.
You will need to create a .env file similar to the sample file (.sample-env) or pass in all of the environment variables when you run the scripts below. If you don't, you'll get this error: { [Error: ENOENT: no such file or directory, open '.env'] errno: -2, code: 'ENOENT', syscall: 'open', path: '.env' } . See https://github.com/motdotla/dotenv for more information.
npm start will run the API and UI on port set via the environment variable PORT and connect to PostgreSQL instance at the url set via the environment variable DATABASE_URL.
If you'd like to enable debugging, use npm run debug and set the environment variable ENV=local.
Navigate to http://localhost:{ PORT }/graphiql to browse the graph interactively using graphiql.
npm start will run the API and UI on port set via the environment variable PORT and connect to PostgreSQL instance at the url set via the environment variable DATABASE_URL.
DO NOT USE A .ENV FILE IN PRODUCTION! SET ACTUAL ENVIRONMENT VARIABLES.
- Postgress.app is an amazingly simple tool for getting a PostgreSQL instance up and running locally
- Postico is the best app for exploring, editing, and managing a PostgreSQL database on Mac OSX