Skip to content

bstarr322/GraphQL

Repository files navigation

graphql-frontend

This is the backend for graphql frontend. This component presents a unified public interface for graphql capable clients. See the Backends For Frontends pattern for an intro to the pattern.

Development Setup

Prerequisites

The following must be installed the

Acquiring code and running

Run the following on your preferred command environment (command prompt, git console, any linux shell or emulator).

git clone [email protected]:CPDOne/graphql-frontend.git
cd graphql-frontend
npm install
npm start 

At this point the graphql-frontend will be running accessible on http://localhost:__[configured_port]__. [configured_port] is what you have configured it to be (see configuration section below) the default is *3000.

Update Schema

It is necessary to update the schema.json everytime a graphql object has been modified or created. Run the script to update the schema.

npm run update-schema
npm run update-schema && npm start 

Adding dependencies

To add a dependency modify the packages.json file then run: npm install

Running the project with existing dependencies.

If you have previously run npm install and have not added any dependencies, you may simply run npm start.

Configuration

The default configuration can be seen in config.js.

If you wish to override a configuration locally set the appropriate environment variable of the same name before running the application. (See: 12 factor app config).

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 5