Skip to content

kotapeter/typescript-knex-apollo-server

 
 

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

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • TypeScript 100.0%