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.

120 lines
4.0 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
  34. -passed dates not shown from server
  35. -don't allow to add travels with passed date
  36. -GUI admin page
  37. -UX design
  38. -interface graphic design
  39. -icons
  40. -api more secure and robust (comprovations, hash passwords, ...)
  41. -web page (webapp) --> (de moment es pot penjar la app en versió web tal qual,
  42. que es podrà fer servir des d'un navegador com si fós la app)
  43. ```
  44. --------------------
  45. ####**PARA LA BASE DE DATOS** [para definir como queremos q esté estructurado, pensando en las funcionalidades que queremos tener]:
  46. ```
  47. var userSchema = new Schema({
  48. username: { type: String },
  49. password: { type: String },
  50. description: { type: String },
  51. avatar: { type: String },
  52. mail: { type: String },
  53. phone: { type: String },
  54. telegram: { type: String }
  55. })
  56. var travelSchema = new Schema({
  57. title: { type: String },
  58. description: { type: String },
  59. owner: { type: String },
  60. from: { type: String },
  61. to: { type: String },
  62. date: { type: Date },
  63. periodic: { type: Boolean },
  64. generateddate: { type: Date },
  65. seats: { type: Number },
  66. package: { type: Boolean },
  67. icon: { type: String },
  68. phone: { type: Number },
  69. telegram: { type: String },
  70. collectivized: { type: Boolean },
  71. modality: { type: String } //if is an offering travel or asking for travel
  72. })
  73. var joinSchema = new Schema({
  74. travelId: { type: String },
  75. joinedUserId: { type: String },
  76. joinedUsername: { type: String },
  77. acceptedUserId: { type: String },
  78. joinedAvatar: { type: String }
  79. });
  80. var commentSchema = new Schema({
  81. travelId: { type: String },
  82. commentUserId: { type: String },
  83. commentUsername: { type: String },
  84. comment: { type: String },
  85. commentAvatar: { type: String }
  86. });
  87. ```
  88. --------------------
  89. ####**RESOURCES using**:
  90. car icons [http://www.flaticon.com/packs/transportation-7](http://www.flaticon.com/packs/transportation-7)
  91. css para la app: matterializeCSS [http://materializecss.com/](http://materializecss.com/)
  92. avatars users: [http://www.flaticon.com/packs/animal-icon-collection](http://www.flaticon.com/packs/animal-icon-collection)
  93. mirar per fer hash de passwords https://www.npmjs.com/package/bcrypt-nodejs