Skip to content
This repository has been archived by the owner on Oct 23, 2022. It is now read-only.

Pepeye/graphql-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node/Express GraphQL Server

GraphQL server using node / express and written in ES6 (ES2015) and ES7 (ES2016)

Getting Started

npm i

create a file in the project root called .env and within it set environment variables NEO4J_USER and NEO4J_PASS. Note you can also edit database credentials in the file src/lib/db.js

example .env file

NODE_ENV=development
NEO4J_USER=neo4j
NEO4J_PASS=neo4j
DEBUG=api:*

to start, run:

npm start

To run tests:

npm test

Tests will use the database credentials in the file src/lib/db.js as I've not yet configured Mocha to use the dotenv .env file.

Stack

TODO

  • Project structure is WIP
  • Move GraphQL code into modules/models
  • Add custom GraphQL scalar types

Releases

No releases published

Packages

No packages published