You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

131 lines
4.5 KiB

8 years ago
8 years ago
  1. #CollectiveCar app
  2. frontend app code: https://github.com/idoctnef/collectivecarApp
  3. **Backend:**
  4. Nodejs + Express + MongoDB
  5. **Frontend:**
  6. Angularjs + Ionic + MaterialDesign
  7. ##To Do List:
  8. **Backend and Frontend:**
  9. ```
  10. -signup user --> done
  11. -signup unique username --> done
  12. -loggin user --> done
  13. -update user profile --> done
  14. -create new travel --> done
  15. -update travel --> done
  16. -delete travel --> done
  17. -create offeringCar --> done
  18. -update offeringCar
  19. -delete offeringCar --> done
  20. -create askingForTravel (needtravel) --> done
  21. -update askingForTravel
  22. -delete askgingForTravel --> done
  23. -create askingPackage (need transport package) --> done
  24. -update askingPackage
  25. -delete askgingPackage --> done
  26. -user joins a car --> done
  27. -user offer car to a travel --> done
  28. -user offer car to a askingpackage --> done
  29. -user unjoins a car --> done
  30. -user unoffer car to a travel --> done
  31. -user unoffer car to a askingpackage --> done
  32. -comment publication(car, travel, package) --> done
  33. -valorating users system --> done
  34. -passed dates not shown from server --> done
  35. -don't allow to add travels with passed date (on frontend and backend)
  36. -acabar de fer robust quan esborres un travel
  37. -GUI admin page
  38. -UX design
  39. -interface graphic design
  40. -icons
  41. -api more secure and robust (comprovations, hash passwords, ...)
  42. -web page (webapp) --> (de moment es pot penjar la app en versió web tal qual,
  43. que es podrà fer servir des d'un navegador com si fós la app)
  44. -es veu el telèfon dels users?
  45. -com evitem q algú xungu es registri a la app i vegi els viatges i info dels users?
  46. -falta acabar notification system
  47. quan mires les notificacions, que avisi al server q ja les has vist, i que el server les marqui com a llegides
  48. link a les notificacions
  49. acabar de mirar q a la app, quan agafa els users del server, tingui actualitzades les notificacions del user al menu
  50. ```
  51. --------------------
  52. ####**PARA LA BASE DE DATOS** [para definir como queremos q esté estructurado, pensando en las funcionalidades que queremos tener]:
  53. ```
  54. var userSchema = new Schema({
  55. username: { type: String },
  56. password: { type: String },
  57. description: { type: String },
  58. avatar: { type: String },
  59. mail: { type: String },
  60. phone: { type: String },
  61. telegram: { type: String }
  62. })
  63. var travelSchema = new Schema({
  64. title: { type: String },
  65. description: { type: String },
  66. owner: { type: String },
  67. from: { type: String },
  68. to: { type: String },
  69. date: { type: Date },
  70. periodic: { type: Boolean },
  71. generateddate: { type: Date },
  72. seats: { type: Number },
  73. package: { type: Boolean },
  74. icon: { type: String },
  75. phone: { type: Number },
  76. telegram: { type: String },
  77. collectivized: { type: Boolean },
  78. modality: { type: String } //if is an offering travel or asking for travel
  79. })
  80. var joinSchema = new Schema({
  81. travelId: { type: String },
  82. joinedUserId: { type: String },
  83. joinedUsername: { type: String },
  84. acceptedUserId: { type: String },
  85. joinedAvatar: { type: String }
  86. });
  87. var commentSchema = new Schema({
  88. travelId: { type: String },
  89. commentUserId: { type: String },
  90. commentUsername: { type: String },
  91. comment: { type: String },
  92. commentAvatar: { type: String }
  93. });
  94. ```
  95. --------------------
  96. ####**RESOURCES using**:
  97. car icons [http://www.flaticon.com/packs/transportation-7](http://www.flaticon.com/packs/transportation-7)
  98. css para la app: matterializeCSS [http://materializecss.com/](http://materializecss.com/)
  99. avatars users: [http://www.flaticon.com/packs/animal-icon-collection](http://www.flaticon.com/packs/animal-icon-collection)
  100. mirar per fer hash de passwords https://www.npmjs.com/package/bcrypt-nodejs