Skip to content
How about adding a layer of graphQL in existing REST APIs? ⚡️
JavaScript TSQL
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
resources
src
.babelrc
.eslintrc.js
.gitignore
Readme.md
package-lock.json
package.json

Readme.md

GraphQL with Existing REST API

Codacy Badge

This repo is the result of my talk on Client First REST API at Social Cops organised by JS Lovers. Find my talk video here: GraphQL with Node.js and MySQL

Run locally

  • Clone the repo
  • npm install
  • Setup a .env file at the root of the repo
  • npm run dev

Notes

  • Contents of .env file
PORT=8080
NODE_ENV = development
READ_DB_HOST = localhost
READ_DB_USER = root
READ_DB_PASSWORD = password
READ_DB_NAME = awesome_products
READ_DB_PORT = 3306
READ_DB_CONNECTION_LIMIT = 10
WRITE_DB_HOST = localhost
WRITE_DB_USER = root
WRITE_DB_PASSWORD = password
WRITE_DB_NAME = awesome_products
WRITE_DB_PORT = 3306
WRITE_DB_CONNECTION_LIMIT = 10
  • Use the SQL file located in resources folder to create the database

  • Will be updated

You can’t perform that action at this time.