Skip to content

Flixow/warsawjs-workshop-65-nestjs

Repository files navigation

🔥 warsawjs-workshop-65-nestJS 🔥

Table of Contents 📋

What you can learn 🎓

  • 💎 Supertokens
  • 💎 Swagger
  • 💎 HealthChecks
  • 💎 TypeOrm i Postgres
  • 💎 ElasticSearch
  • 💎 Migrations

Setup 🔨

  • git clone https://github.com/Flixow/warsawjs-workshop-65-nestjs.git
  • npm install or yarn install
  • npm run start or yarn start

Possible issues

Steps

Supertokens

  • Supertokens API
  • Add forRootAsync to use dynamic config
  • Setup sample guarded endpoint
  • Add Swagger
  • Setup frontend npx create-react-app frontend
  • Setup Supertokens frontend
  • Sign up, sign in, check cookies, guarded endpoint and database schema in pgAdmin
  • Add health checks

Typeorm

  • npm install @nestjs/typeorm typeorm pg
  • Setup articles module with entity and dto
  • npm i class-validator class-transformer
  • Add CLI plugin to handle DTO's in swagger automatically

Elasticsearch

  • npm install @nestjs/elasticsearch @elastic/elasticsearch
  • Create search module
  • "esModuleInterop": true
  • Implement Elasticsearch
  • Add healthcheck

Migrations

  • Setup data source
  • Setup npm scripts

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published