Skip to content

This will be a clone for hacker news via the tutorial of GraphQL TS & Apollo

Notifications You must be signed in to change notification settings

elbancud/Hacker-news

Repository files navigation

Hacker-news-ts

This will be a clone for hacker news via the tutorial of GraphQL TS & Apollo

Installation

Typescript: Version under development ^@4.3.5 Ts-Node: Version under development @^1.1.8

General

$ npm init -y
$ npm install --save-dev typescript@latest ts-node@latest
$ touch tsconfig.json
$ npm install apollo-server@latest graphql@latest nexus@latest

@^3.1.1 | @^15.5.1 | @^1.1.0 | ^@3.5.0 | ^@3.5.0

Prisma Side

$ npm install prisma --save-dev
$ npm install @prisma/client
$ npx prisma migrate dev --name "init"

Auth

$ npm install bycriptjs jsonwebtoken

Href

https://www.howtographql.com/typescript-apollo/1-getting-started/ https://www.howtographql.com/typescript-apollo/2-a-simple-query/

Technologies

Runs

$ npx ts-node --transpile-only src/schema /This will generate a schema and typegen

Configs

@package.json

'dev': 'ts-node --transpile-only --no-notify --exit-child src/index.ts'
'generate': 'ts-node --transpile-only src/schema.ts'

Terminologies used

  • process.cwd() - current working directory
  • [query, mutation] = types
  • @relation - for setting attribute of a model

About

This will be a clone for hacker news via the tutorial of GraphQL TS & Apollo

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published