Skip to content

Latest commit

 

History

History
39 lines (34 loc) · 963 Bytes

README.md

File metadata and controls

39 lines (34 loc) · 963 Bytes

GraphQL Backend Application

Introduction

This is a simple graphql application for react training.

How to run

This application requires node to be installed on your system. Please check upstream documentation for how to install node on your system.

Development build

In application root path run following commands

cd app
npm install
npm run dev

Production build

Run following commands

cd app
npm install --only=production && npm run build
npm start

Dependencies

This application required following connections to run.

  • MYSQL

Environment variables

Environment variables is the main mechanism of manipulating application settings. Currently application recognizes following environment variables:

MYSQL_HOST = host
MYSQL_PORT = mysql port
MYSQL_USER = mysql user name
MYSQL_PASSWORD = mysql password
MYSQL_DATABASE = mysql database