Skip to content

technocrats-robotics/tcr-utility

Folders and files

NameName
Last commit message
Last commit date

Latest commit

43a80e3 · Aug 19, 2022

History

60 Commits
Dec 14, 2020
Mar 30, 2021
Mar 30, 2021
Aug 18, 2022
Mar 30, 2021
Aug 18, 2022
Aug 18, 2022
Apr 14, 2021
Mar 31, 2021
Aug 18, 2022
Aug 18, 2022
Dec 20, 2021
Aug 18, 2022
Aug 18, 2022

Repository files navigation

Technocrats-Utility

This application serves as a Microservice for Official website of Team Technocrats Robotics

Pre-requisites

  • Node.js

Dependencies

  • express.js
  • cors
  • body-parser
  • nodemailer
  • axios

Endpoints

Method Endpoint Description
POST /sendMail Send credentials to the users created on website.
POST /sendFeedback Send feedback given by users on the TCR's official email id.
GET /gallery Fetch images from the GOOGLE PHOTOS ALBUM

Constants

  • Create a new file constans.js in root directory.
  • Create a similar file with valid credentials
// email credentials
const SERVICE = 'gmail'
const EMAIL = 'example@email.com'
const PASSWORD = 'yourpassword'

// for feedback
const EMAILTO = 'example2@email.com'

// google photos
const ALBUMID = 'your_googlephotos_albumid'

// token
const TOKEN = 'valid_user_token'

module.exports = { SERVICE, EMAIL, PASSWORD, EMAILTO, ALBUMID, TOKEN }