Giter Site home page Giter Site logo

emails-app's Introduction

Email App

This is a back-end application which sends speaks to a React front-end to send emails.

๐Ÿ“‹ Aims of App

  • Allow the user to be able to send emails

๐Ÿ‘ฉโ€๐Ÿ’ป Technical Details

  • NodeJS
  • Nodemailer
  • CORs
  • Express

๐Ÿ”ง How to Run the App

  • npm install
  • npm start

Setting up .env credentials

  • In order to use this app alongside the reminders app you will need to set up an .env file
  • Create a .env file in the root of the emails-app directory
  • In the .env file add the follow:
EMAIL= <your-gmail-email>
WORD= <you-gmail-password>
OAUTH_CLIENTID= <token-generated-below>
OAUTH_CLIENT_SECRET= <token-generated-below>
OAUTH_REFRESH_TOKEN= <token-generated-below>
  • To generate the client ID and client secret token:

    • Head over to Google Cloud Platform
    • Select new project
    • Give the project a name and then, go to APIs and Services (on the left hand side)
    • Select OAuth consent screen
    • Select external and then use your gmail acc as user support email (ignore app domain)
    • Click next on scope page
    • Add yourself (gmail acc) as test user
    • Click on credentials on the left hand menu. Click the plus sign and then click OAuth client ID
    • Select web application as the application type
    • In URI add the url: https://developers.google.com/oauthplayground
    • Once you click create you should see a client ID and client secret
  • To generate the refresh token:

    • Header over to https://developers.google.com/oauthplayground/
    • Click on the gear icon on the right and check the user your own OAuth credentials box
    • Put in the client ID and secret generated above
    • On the left menu, select Gmail API v1
    • Click continue on 'vertified this app'
    • Click exchange authorization code for tokens
    • You should see a refresh and access token

๐Ÿ’ญ Future Improvements

  • Send emails at a specific date and time (prompted by user on front-end)

emails-app's People

Contributors

1970105697 avatar ummagohil avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.