An example GraphQL server built with TypeScript, Knex.js and Apollo Server
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
npm i
npm run db-up
npx knex migrate:latest
npx knex seed:run
npm run watch