laurohen / nestjs-serverless-redis

Task manager using serverless + nestjs + redis

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

nestjs-serverless-redis

Task manager using serverless + nestjs + redis

To start testing the project need to use Redis

Usage

Run redis-server

docker run -d --name redis -p 6379:6379 redis

How to run whole project?

Step 1

with npm

npm install 

Step 2

with npm

npm run serverless

Testing?

  • I got my aggregator api running on localhost:3000.

  • Use via Swagger:
http://localhost:3000/dev/api//

image

  • Use via Postman:
POST - http://localhost:3000/dev/task

priority (0 = Low, 1 = Medium, 2 = High)

{
  "name": "string",
  "dateExecution": "2022-03-07T11:24:52.912Z",
  "situation": true,
  "priority": 0,
  "dateCompletion": "2022-03-07T11:24:52.912Z"
}
GET - http://localhost:3000/dev/task
GET - http://localhost:3000/dev/task/{id}
PATCH - http://localhost:3000/dev/task/{id}

priority (0 = Low, 1 = Medium, 2 = High)

{
  "name": "string",
  "dateExecution": "2022-03-07T11:24:52.912Z",
  "situation": true,
  "priority": 0,
  "dateCompletion": "2022-03-07T11:24:52.912Z"
}
DELETE - http://localhost:3000/dev/task/{id}

About

Task manager using serverless + nestjs + redis

License:MIT License


Languages

Language:TypeScript 86.3%Language:JavaScript 13.7%