Skip to content

amasanelli/backend-coding-challenge-23b

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

backend-coding-challenge-23b

build

cd alarms

npm install

run

docker-compose up -d

npm run start

access localhost:3000/docs

now you can create an user, login and then create alarms

to create a one-shot alarm send this payload

{
    "message": "test",
    "subject": "test",
    "fire": "2023-03-28T02:20:24Z"
}

to create a daily alarm send this payload

{
    "message": "test",
    "subject": "test",
    "fire": "2023-03-28T02:20:24Z",
    "daily": true
}

to create a monthly alarm send this payload

{
    "message": "test",
    "subject": "test",
    "fire": "2023-03-28T02:20:24Z",
    "monthly": true
}

to create a multiple-days alarm send this payload

{
    "message": "test",
    "subject": "test",
    "fire": "2023-03-28T02:20:24Z",
    "multipleDays": {
        "monday": true,
        "friday": true
    }
}

test

npm run test

to do

  • add more tests (test deeply)
  • enhance docs (openApi)
  • enhance mail template
  • create custom errors
  • enhance error handling
  • add returned types (lint)
  • create a separated service to handle cron tasks and another one to send emails

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published