Skip to content

Latest commit

 

History

History
52 lines (42 loc) · 1.7 KB

README.md

File metadata and controls

52 lines (42 loc) · 1.7 KB

Info

This project gets random information for learning purposes.

Navigating to the Site Hosted in Azure will result in random info.

Send email

To send an email, send a post request with email and password. This endpoint will send an email of random data given proper email credentials

POST /sendEmail

Headers

Content-Type: application/json

Body

{
    emailAddress: "[email protected]",
    emailPassword: "vfc..wgjs"
}

Example curl request (Windows) to trigger email

Example, using Gmail and App-Specific Password

    curl -H "Content-Type: application/json" -d "{\"emailAddress\": \"[email protected]\",\"emailPassword\": \"vfc..wgjs\"}" -X POST https://random-info-website.azurewebsites.net/sendEmail

Dependencies

To build in Azure

Clone Repo, Dockerize (command below), then host in Azure - App Service

npm run dockerize

TO DO