Skip to content

alecmaly/random-info-website

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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: "alecjmaly@gmail.com",
    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\": \"alecjmaly@gmail.com\",\"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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published