Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/howtographql/typescript-apollo
Tutorial for HowToGraphQL with Typescript, Apollo-Server, Nexus and Prisma.
https://github.com/howtographql/typescript-apollo
apollo-server graphql prisma typescript
Last synced: 7 days ago
JSON representation
Tutorial for HowToGraphQL with Typescript, Apollo-Server, Nexus and Prisma.
- Host: GitHub
- URL: https://github.com/howtographql/typescript-apollo
- Owner: howtographql
- Created: 2021-11-22T23:57:36.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2024-08-08T21:26:26.000Z (3 months ago)
- Last Synced: 2024-08-08T23:31:22.764Z (3 months ago)
- Topics: apollo-server, graphql, prisma, typescript
- Language: TypeScript
- Homepage: https://www.howtographql.com/typescript-apollo/0-introduction/
- Size: 86.9 KB
- Stars: 49
- Watchers: 2
- Forks: 12
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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](https://www.prisma.io/docs/concepts/database-connectors/postgresql#connection-details).
- 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](https://www.howtographql.com/typescript-apollo/9-deployment/) is available in the [`chapter-9-start`](https://github.com/howtographql/typescript-apollo/tree/chapter-9-start) branch.