Skip to content

Mash-Up-Node/mashup-nest-mercurius-fastify

Repository files navigation

MASHUP-NEST-MERCURIUS-FASTIFY

Todo

  • TestCode

  • Prisma

  • Serverless

  • CI/CD (HyeOn)

    • CI (Husky)
    • CD (Serverless)
  • Make the most of Enhancer

    • Error handling

      • Manage by code (Idea by Joo, implements by HyeOn)
    • Guard that using passport (YoonHa)

      • Local
      • JWT
  • Custom Decorator

    • Method decorator for any ideas
    • Property decorator for any ideas
  • GraphQL

    • Resolve N+1 Problem in Graphql and Orm (Together)
    • Field-Access (Joo)

Before start

Install dependencies

$  yarn install

Generate prisma

$ npx prisma generate

Create .env file

(Optional) Create local database

$  docker-compose up -d

(Optional) Migrate database

$  yarn migrate:dev

Start server

$  yarn start:dev

Serverless란?

GraphQL + mercurius (driver) 사용

Fastify + AWS lambda

Serverless to AWS lambda

download serverless

$  npm i -g serverless

Set AWS access key into

$  aws login ...

Build project

$  yarn build

Pckaging into serverless

$  npx serverless package

Deploy

$  npx serverless deploy

1. Upload to AWS cloudformation template

2. Deploy to AWS lambda

Enjoy

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •