This repository holds an example GraphQL server written in Node.js. The code uses Apollo server with Knex, Objection.js and sqlite.
- Clone the repository
- Install dependencies:
npm install
- Install knex globally for migrations:
npm install -g knex
- Run
knex migrate:latest
andknex seed:run
to create the database with sample data - Execute
npm run dev
to start the development server onlocalhost:4000
- Use an app like Insomnia to send GraphQL queries to the server