Project Demo : https://youtu.be/CMTvywiti6s
A Jorney Remainder which will help you to set email remainder for your journey
-
Node JS
-
Java
-
Mysql
Clone The Application
$ git clone https://github.com/agaraman0/journeyReminder.git
$ cd journeyReminder/
Application is going to run into two parts
-
Email Scheduling : This will be responsible for email scheduling to send remainder email at particular time.
-
Application Server: This will be our main server on which our application will run and pass it to Email Scheduling Server.
We are using Mysql database so install mysql database if you have not installed it and follow instrunctions manually
mysql> create database schedule_email;
mysql> use schedule_email;
mysql> GRANT ALL PRIVILEGES ON schedule_email.* TO 'username'@'localhost';
Download the following SQL script and run it in your MySQL database to create all the Quartz specific tables.
mysql> source <PATH_TO_Jobs_Database_table_Script.sql>
Update spring.datasource.username
and spring.datasource.password
in application.properties according to your Mysql Configuration. ( or parse as argument via CLI)
$ cd email_scheduler
$ mvn spring-boot:run -Dspring-boot.run.arguments=--spring.mail.password=<password>,--spring.mail.username=<email>
NOTE - 8080 is default port number but you can define port number by following step 4 - Gmail’s SMTP access is disabled by default. To allow email scheduler to send emails using your Gmail account -
1 Go to [https://myaccount.google.com/security?pli=1#connectedapps](https://myaccount.google.com/security?pli=1#connectedapps)
2 Set ‘Allow less secure apps’ to YES
Now we are good to move on our Application Server as Email Scheduler is running fine
$ cd conwoTask
$ npm install
$ node index.js
To Run App on specific port
$ PORT=<port> node index.js
open browser and check at this address