arnaucube
arnaucube/commonroutesServerPublic Self-hosted repository
commonroutesServer/README.md
README.mdRaw
  1#CollectiveCar app
  2
  3frontend app code: https://github.com/idoctnef/collectivecarApp
  4
  5**Backend:**
  6    Nodejs + Express + MongoDB
  7
  8**Frontend:**
  9    Angularjs + Ionic + MaterialDesign
 10
 11
 12
 13
 14##To Do List:
 15**Backend and Frontend:**
 16```
 17-signup user	                                                  		--> done
 18-loggin user	                                                  		--> done
 19-update user profile                                              	--> done
 20-create new travel	                                               	--> done
 21-update travel		                                                 	--> done
 22-delete travel		                                                 	--> done
 23-create offeringCar                                                	--> done
 24-update offeringCar
 25-delete offeringCar                                                 --> done
 26-create askingForTravel (needtravel)                                --> done
 27-update askingForTravel
 28-delete askgingForTravel                                            --> done
 29-create askingPackage (need transport package)                      --> done
 30-update askingPackage
 31-delete askgingPackage                                              --> done
 32-user joins a car                                                   --> done
 33-user offer car to a travel                                         --> done
 34-user offer car to a askingpackage                                  --> done
 35-user unjoins a car                                                 --> done
 36-user unoffer car to a travel                                       --> done
 37-user unoffer car to a askingpackage                                --> done
 38-comment publication(car, travel, package)                          --> done
 39-valorating users system
 40
 41-UX design
 42-interface graphic design
 43-icons
 44-api more secure and robust (comprovations, hash passwords, ...)
 45
 46-web page (webapp) --> (de moment es pot penjar la app en versió web tal qual,
 47  que es podrà fer servir des d'un navegador com si fós la app)
 48```
 49
 50
 51--------------------
 52####**PARA LA BASE DE DATOS** [para definir como queremos q esté estructurado, pensando en las funcionalidades que queremos tener]:
 53
 54
 55```
 56var userSchema = new Schema({
 57    username: { type: String },
 58    password: { type: String },
 59    description:   { type: String },
 60    avatar:   { type: String },
 61    mail:   { type: String },
 62    phone: { type: String },
 63    telegram: { type: String }
 64})
 65var travelSchema = new Schema({
 66    title: { type: String },
 67    description: { type: String },
 68    owner:   { type: String },
 69    from: { type: String },
 70    to: { type: String },
 71    date: { type: Date },
 72    periodic: { type: Boolean },
 73    generateddate: { type: Date },
 74    seats: { type: Number },
 75    package: { type: Boolean },
 76    icon: { type: String },
 77    phone: { type: Number },
 78    telegram: { type: String },
 79    collectivized: { type: Boolean },
 80    modality: { type: String } //if is an offering travel or asking for travel
 81})
 82var joinSchema = new Schema({
 83    travelId: { type: String },
 84    joinedUserId: { type: String },
 85    joinedUsername: { type: String },
 86    acceptedUserId: { type: String },
 87    joinedAvatar: { type: String }
 88
 89});
 90var commentSchema = new Schema({
 91    travelId: { type: String },
 92    commentUserId: { type: String },
 93    commentUsername: { type: String },
 94    comment: { type: String },
 95    commentAvatar: { type: String }
 96
 97});
 98```
 99--------------------
100
101
102####**RESOURCES using**:
103
104car icons [http://www.flaticon.com/packs/transportation-7](http://www.flaticon.com/packs/transportation-7)
105
106css para la app: matterializeCSS [http://materializecss.com/](http://materializecss.com/)
107
108avatars users: [http://www.flaticon.com/packs/animal-icon-collection](http://www.flaticon.com/packs/animal-icon-collection)
109
110
111
112
113
114mirar per fer hash de passwords https://www.npmjs.com/package/bcrypt-nodejs