Tutorial for HowToGraphQL with Typescript, Apollo-Server, Nexus and Prisma.
- Install dependencies:
npm install - 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.
- Create a
.envfile and add theDATABASE_URLenvironment variable with a PostgreSQL connection string.- The
.env.examplefile is provided as reference.
- The
- Apply database migrations:
npx prisma migrate dev - Start the project:
npm run dev - 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.