Skip to content

Commit

Permalink
send verification email to user
Browse files Browse the repository at this point in the history
  • Loading branch information
MohamedEsssam committed Dec 12, 2020
1 parent ad02f64 commit 201d101
Show file tree
Hide file tree
Showing 9 changed files with 2,011 additions and 41 deletions.
21 changes: 11 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ Real-time mobile application to help you to sell the old things that you don't u
### 1- ios

<p align="center">
<img src="http://gifimgs.com/res/1120/5fa694d34b458106983476.gif"/>
<img src="https://s8.gifyu.com/images/doneWithIt_ios_demo.gif"/>
</p>

### 2- android

<p align="center">
<img src="http://gifimgs.com/res/1120/5fa6aa019f2dd134842787.gif"/>
<img src="https://s8.gifyu.com/images/doneWithIt-_android_demo.gif"/>
</p>

# Done
Expand All @@ -26,14 +26,15 @@ Real-time mobile application to help you to sell the old things that you don't u
<p>6- Sort listing by date of post. ✅ </p>
<p>7- Make app real time application using socket.io (frontend, backed).✅</p>
<p>8- Handle authentication using jwt.✅ </p>
<p>9- Handle update and delete listings.✅</p>
<p>10- send verification email to user.✅</p>

# Future

<p>1- Handle update and delete listings. ❌</p>
<p>2- Handle update and delete listing image. ❌ </p>
<p>3- Forbidden delete listing image if there is only one. ❌</p>
<p>4- Handle (add, update, delete) multiple images for listings. ❌</p>
<p>5- Handle change user profile pic. ❌</p>
<p>6- Message input screen ❌</p>
<p>7- send message notification ❌</p>
<p>8- Recommendation system. ❌</p>
<p>1- Handle update and delete listing image. ❌ </p>
<p>2- Forbidden delete listing image if there is only one. ❌</p>
<p>3- Handle (add, update, delete) multiple images for listings. ❌</p>
<p>4- Handle change user profile pic. ❌</p>
<p>5- Message input screen ❌</p>
<p>6- send message notification ❌</p>
<p>7- Recommendation system. ❌</p>
3 changes: 2 additions & 1 deletion backend/config/custom-environment-variables.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"dbName": "DB_NAME",
"mysqlPass": "MYSQL_PASS",
"authSecret": "CP_AUTH_SECRET"
"authSecret": "CP_AUTH_SECRET",
"mailerApiKey":"SENDGRID_API_KEY"
}
3 changes: 2 additions & 1 deletion backend/config/default.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"dbName": "",
"mysqlPass": "",
"authSecret": ""
"authSecret": "",
"mailerApiKey":""
}
3 changes: 2 additions & 1 deletion backend/config/development.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"dbName": "",
"mysqlPass": "",
"authSecret": ""
"authSecret": "",
"mailerApiKey":""
}
4 changes: 3 additions & 1 deletion backend/controllers/user/register.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
const EmailServices = require("../../services/EmailServices");
const EmailServicesInstance = new EmailServices();
const UserServices = require("../../services/UserServices");
const UserServicesInstance = new UserServices();
const UserServicesInstance = new UserServices(EmailServicesInstance);

module.exports = async (req, res) => {
const name = req.body.name;
Expand Down
Loading

0 comments on commit 201d101

Please sign in to comment.