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.

125 lines
4.2 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. ```
  47. --------------------
  48. ####**PARA LA BASE DE DATOS** [para definir como queremos q esté estructurado, pensando en las funcionalidades que queremos tener]:
  49. ```
  50. var userSchema = new Schema({
  51. username: { type: String },
  52. password: { type: String },
  53. description: { type: String },
  54. avatar: { type: String },
  55. mail: { type: String },
  56. phone: { type: String },
  57. telegram: { type: String }
  58. })
  59. var travelSchema = new Schema({
  60. title: { type: String },
  61. description: { type: String },
  62. owner: { type: String },
  63. from: { type: String },
  64. to: { type: String },
  65. date: { type: Date },
  66. periodic: { type: Boolean },
  67. generateddate: { type: Date },
  68. seats: { type: Number },
  69. package: { type: Boolean },
  70. icon: { type: String },
  71. phone: { type: Number },
  72. telegram: { type: String },
  73. collectivized: { type: Boolean },
  74. modality: { type: String } //if is an offering travel or asking for travel
  75. })
  76. var joinSchema = new Schema({
  77. travelId: { type: String },
  78. joinedUserId: { type: String },
  79. joinedUsername: { type: String },
  80. acceptedUserId: { type: String },
  81. joinedAvatar: { type: String }
  82. });
  83. var commentSchema = new Schema({
  84. travelId: { type: String },
  85. commentUserId: { type: String },
  86. commentUsername: { type: String },
  87. comment: { type: String },
  88. commentAvatar: { type: String }
  89. });
  90. ```
  91. --------------------
  92. ####**RESOURCES using**:
  93. car icons [http://www.flaticon.com/packs/transportation-7](http://www.flaticon.com/packs/transportation-7)
  94. css para la app: matterializeCSS [http://materializecss.com/](http://materializecss.com/)
  95. avatars users: [http://www.flaticon.com/packs/animal-icon-collection](http://www.flaticon.com/packs/animal-icon-collection)
  96. mirar per fer hash de passwords https://www.npmjs.com/package/bcrypt-nodejs