Send emails from your Nuxtjs App using Nodemailer. Rich user interface to send emails and attachments.
Make sure to install the dependencies:
# yarn
yarn install
# npm
npm install
Create a .env
file and add the following variables:
DB_URL= #MongoDB
ACCESS_TOKEN_SECRET= #JsonWebToken Secret
GOOGLE_CLIENT_ID= #Google Client ID
GOOGLE_CLIENT_SECRET= #Google CLient Secret
FACEBOOK_CLIENT_ID= #Facebook Client ID
FACEBOOK_CLIENT_SECRET= #Facebook CLient Secret
Start the development server on http://localhost:3001
# yarn
yarn dev
# npm
npm run dev
POST /auth/register
POST /auth/login
POST /auth/forgot
PATCH /auth/reset
GET /oauth2/google
GET /oauth2/google/redirect
GET /oauth2/facebook
GET /oauth2/facebook/redirect
Note: All routes takes auth middleware to verify user using token sent in request header
GET /users
PATCH /users/password
PATCH /users/name
PATCH /users/email
DELETE /users