Skip to content
This repository was archived by the owner on Oct 20, 2023. It is now read-only.

An example GraphQL server built with TypeScript, Knex.js and Apollo Server

License

Notifications You must be signed in to change notification settings

lpgera/typescript-knex-apollo-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

a87e789 · Nov 15, 2021

History

10 Commits
Apr 12, 2020
Apr 12, 2020
Apr 12, 2020
Apr 12, 2020
Apr 12, 2020
Apr 12, 2020
Apr 12, 2020
Apr 12, 2020
Jun 18, 2020
Apr 12, 2020
Nov 15, 2021
Nov 15, 2021
Apr 12, 2020

Repository files navigation

typescript-knex-apollo-server

An example GraphQL server built with TypeScript, Knex.js and Apollo Server

Setup

.env

Create a .env file based on the example below.

DB_HOST=localhost
DB_PORT=3306
DB_NAME=ts-gql
DB_USER=user
DB_PASSWORD=password
DB_ROOT_PASSWORD=root-password

PORT=3000

Install dependencies and initialize database

npm i
npm run db-up
npx knex migrate:latest
npx knex seed:run

Run project in development mode

npm run watch

About

An example GraphQL server built with TypeScript, Knex.js and Apollo Server

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published