mirror of
https://github.com/arnaucube/commonroutesServer.git
synced 2026-02-28 05:26:42 +01:00
added icons to notifications
This commit is contained in:
21
README.md
21
README.md
@@ -1,16 +1,26 @@
|
|||||||
# CarsInCommonServer
|
# CarsInCommonServer
|
||||||
|
|
||||||
frontend app code: https://github.com/idoctnef/carsincommonApp
|
- frontend app code: https://github.com/arnaucode/carsincommonApp
|
||||||
images server: https://github.com/arnaucode/goImgServer
|
- images server: https://github.com/arnaucode/goImgServer
|
||||||
|
|
||||||
**Backend:**
|
**Backend:**
|
||||||
Nodejs + Express + MongoDB
|
|
||||||
|
- Nodejs + Express + MongoDB
|
||||||
|
- Go --> for the images server
|
||||||
|
|
||||||
**Frontend:**
|
**Frontend:**
|
||||||
Angularjs + Ionic + MaterialDesign
|
|
||||||
|
- Angularjs + Ionic
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
App:
|
||||||
|
|
||||||
|

|
||||||
|
code: https://github.com/arnaucode/carsincommonApp
|
||||||
|
|
||||||
|
--------------------
|
||||||
|
|
||||||
|
|
||||||
**To Do Backend and Frontend:**
|
**To Do Backend and Frontend:**
|
||||||
```
|
```
|
||||||
@@ -19,9 +29,6 @@ images server: https://github.com/arnaucode/goImgServer
|
|||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
--------------------
|
|
||||||
|
|
||||||
|
|
||||||
#### RESOURCES using:
|
#### RESOURCES using:
|
||||||
|
|
||||||
initial avatars users: [http://www.flaticon.com/packs/animal-icon-collection](http://www.flaticon.com/packs/animal-icon-collection)
|
initial avatars users: [http://www.flaticon.com/packs/animal-icon-collection](http://www.flaticon.com/packs/animal-icon-collection)
|
||||||
|
|||||||
@@ -5,5 +5,4 @@ module.exports = {
|
|||||||
'database': 'mongodb://localhost/carsincommon',
|
'database': 'mongodb://localhost/carsincommon',
|
||||||
"port" : process.env.PORT || 3000,
|
"port" : process.env.PORT || 3000,
|
||||||
"pageSize": 20
|
"pageSize": 20
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -153,7 +153,7 @@ exports.addJoinPetition = function(req, res) {
|
|||||||
concept: "join",
|
concept: "join",
|
||||||
message: "user "+userJoining.username+" joins your travel "+travel.title,
|
message: "user "+userJoining.username+" joins your travel "+travel.title,
|
||||||
date: new Date(),
|
date: new Date(),
|
||||||
icon: 'join.png',
|
icon: 'ion-person-add',
|
||||||
link: "travels/" + travel._id,
|
link: "travels/" + travel._id,
|
||||||
user: user._id
|
user: user._id
|
||||||
});
|
});
|
||||||
@@ -212,7 +212,7 @@ exports.unJoin = function(req, res) {
|
|||||||
concept: "unjoin",
|
concept: "unjoin",
|
||||||
message: "user "+userJoining.username+" unjoins your travel "+travel.title,
|
message: "user "+userJoining.username+" unjoins your travel "+travel.title,
|
||||||
date: new Date(),
|
date: new Date(),
|
||||||
icon: 'unjoin.png',
|
icon: 'ion-arrow-return-left',
|
||||||
link: "travels/" + travel._id,
|
link: "travels/" + travel._id,
|
||||||
user: user._id
|
user: user._id
|
||||||
});
|
});
|
||||||
@@ -281,7 +281,7 @@ exports.declineJoin = function(req, res) {
|
|||||||
concept: "travel",
|
concept: "travel",
|
||||||
message: "user "+userOwner.username+" declines your petition for "+travel.title,
|
message: "user "+userOwner.username+" declines your petition for "+travel.title,
|
||||||
date: new Date(),
|
date: new Date(),
|
||||||
icon: 'travel.png',
|
icon: 'ion-close',
|
||||||
link: "travels/" + travel._id,
|
link: "travels/" + travel._id,
|
||||||
user: user._id
|
user: user._id
|
||||||
});
|
});
|
||||||
@@ -350,7 +350,7 @@ exports.acceptJoin = function(req, res) {
|
|||||||
concept: "travel",
|
concept: "travel",
|
||||||
message: "user "+userOwner.username+" accepts your petition for "+travel.title,
|
message: "user "+userOwner.username+" accepts your petition for "+travel.title,
|
||||||
date: new Date(),
|
date: new Date(),
|
||||||
icon: 'travel.png',
|
icon: 'ion-checkmark',
|
||||||
link: "travels/" + travel._id,
|
link: "travels/" + travel._id,
|
||||||
user: user._id
|
user: user._id
|
||||||
});
|
});
|
||||||
@@ -409,7 +409,7 @@ exports.leave = function(req, res) {
|
|||||||
concept: "leave",
|
concept: "leave",
|
||||||
message: "user "+userLeaving.username+" leaves your travel "+travel.title,
|
message: "user "+userLeaving.username+" leaves your travel "+travel.title,
|
||||||
date: new Date(),
|
date: new Date(),
|
||||||
icon: 'leave.png',
|
icon: 'ion-log-out',
|
||||||
link: "travels/" + travel._id,
|
link: "travels/" + travel._id,
|
||||||
user: user._id
|
user: user._id
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -418,7 +418,7 @@ exports.likeUser = function(req, res) {
|
|||||||
concept: "like",
|
concept: "like",
|
||||||
message: "user " + userL.username + " adds a like to you",
|
message: "user " + userL.username + " adds a like to you",
|
||||||
date: new Date(),
|
date: new Date(),
|
||||||
icon: 'like.png',
|
icon: 'ion-heart',
|
||||||
link: "users/" + user._id,
|
link: "users/" + user._id,
|
||||||
user: user._id
|
user: user._id
|
||||||
});
|
});
|
||||||
@@ -469,7 +469,7 @@ exports.unlikeUser = function(req, res) {
|
|||||||
concept: "like",
|
concept: "like",
|
||||||
message: "user " + userL.username + " removes like on you",
|
message: "user " + userL.username + " removes like on you",
|
||||||
date: new Date(),
|
date: new Date(),
|
||||||
icon: 'like.png',
|
icon: 'ion-heart-broken',
|
||||||
link: "users/" + user._id,
|
link: "users/" + user._id,
|
||||||
user: user._id
|
user: user._id
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -14,7 +14,8 @@ var notificationSchema = new Schema({
|
|||||||
message: {type: String},
|
message: {type: String},
|
||||||
link: {type: String},//aquí oju, a la app i a la web calen links diferents
|
link: {type: String},//aquí oju, a la app i a la web calen links diferents
|
||||||
date: {type: Date},
|
date: {type: Date},
|
||||||
dateviewed: {type: Date}
|
dateviewed: {type: Date},
|
||||||
|
icon: {type: String}
|
||||||
})
|
})
|
||||||
|
|
||||||
notificationSchema.plugin(mongooseUniqueValidator);
|
notificationSchema.plugin(mongooseUniqueValidator);
|
||||||
|
|||||||
Reference in New Issue
Block a user