Skip to content
This repository has been archived by the owner on May 13, 2021. It is now read-only.

zsevic/task-issues

Repository files navigation

task-issues

Setup

  • Run the following commands
git clone https://github.com/zsevic/task-issues
cd task-issues
cp .env.sample .env
npm i
docker-compose up --build -V --remove-orphans
  • Import Postman collection (postman_collection.json) into the Postman

  • Test implemented endpoints

GET /agents
GET /issues
POST /agents # name in request body is required
POST /issues # title in request body is required
GET /agents/{id}/issues # id (UUID format) param is required
PUT /agents/{id}/issues/{issueId}/resolve # id (UUID format) and issueId (UUID format) params are required

Entities

  • agent

    • id (UUID)
    • name
    • status (value: 'AVAILABLE' or 'ASSIGNED')
  • issue

    • id (UUID)
    • agent_id (UUID, nullable)
    • title
    • status (value: 'PENDING', 'ASSIGNED' or 'RESOLVED')

API documentation

Generated at https://localhost:8080/api-docs

Docker compose commands

docker-compose up -V
docker-compose down

Testing

npm test
npm run test:coverage

Technologies used

  • Node.js, TypeScript, NestJS, TypeORM (PostgreSQL)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published