Skip to content

howtographql/typescript-apollo

This branch is 1 commit ahead of master.

Folders and files

NameName
Last commit message
Last commit date
Mar 7, 2022
Feb 20, 2022
Apr 19, 2022
Mar 7, 2022
Feb 20, 2022
Mar 7, 2022
Nov 20, 2022
Apr 19, 2022
Nov 21, 2022
Nov 21, 2022
Jan 17, 2022
Apr 19, 2022
Nov 22, 2021

Repository files navigation

typescript-apollo

Tutorial for HowToGraphQL with Typescript, Apollo-Server, Nexus and Prisma.

Installation

  1. Install dependencies: npm install
  2. Start a PostgreSQL database with docker using: docker-compose up -d.
    • If you have a local instance of PostgreSQL running, you can skip this step.
  3. Create a .env file and add the DATABASE_URL environment variable with a PostgreSQL connection string.
    • The .env.example file is provided as reference.
  4. Apply database migrations: npx prisma migrate dev
  5. Start the project: npm run dev
  6. Access the project at http://localhost:3000/

Note: The state of the codebase at the beginning of chapter-9 is available in the chapter-9-start branch.