amitkadivar1 / fullstack-webapp

Using Typesctipt, Graphql create webapplication

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Typescript Nodejs

  • Install TypeScript Dev dependencies
  • add start script in package.json
  • install ts-node in dev dependencies
  • run npx tsconfig.json and select nodejs
  • add watch in script tsc -w
  • setup nodemon for typescript and javascript
  • install @mikro-orm/cli, @mikro-orm/core, @mikro-orm/migrations,@mikro-orm/postgresql pg more info view here

Daily Work

Day 1

  • Setups ts config
  • setups mikro-orm
  • make entities
  • make migration
  • Insert Data

Day 2

  • setup express and add graphql middleware
  • Create a resolver
  • Make context type
  • Create a Post crud operation

Day 3

  • Make User entities
  • Make User resolvers
  • make a login and register user mutation
  • encrypt and verify password using argon2
  • handle exception and error
  • make a User Response

Day 4

  • Session pass in Context
  • Store cookie and get current login user
  • make me resolver

About

Using Typesctipt, Graphql create webapplication


Languages

Language:TypeScript 100.0%