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.

116 lines
3.8 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. -loggin user --> done
  12. -update user profile --> done
  13. -create new travel --> done
  14. -update travel --> done
  15. -delete travel --> done
  16. -create offeringCar --> done
  17. -update offeringCar
  18. -delete offeringCar --> done
  19. -create askingForTravel (needtravel) --> done
  20. -update askingForTravel
  21. -delete askgingForTravel --> done
  22. -create askingPackage (need transport package) --> done
  23. -update askingPackage
  24. -delete askgingPackage --> done
  25. -user joins a car --> done
  26. -user offer car to a travel --> done
  27. -user offer car to a askingpackage --> done
  28. -user unjoins a car --> done
  29. -user unoffer car to a travel --> done
  30. -user unoffer car to a askingpackage --> done
  31. -comment publication(car, travel, package) --> done
  32. -valorating users system
  33. -GUI admin page
  34. -UX design
  35. -interface graphic design
  36. -icons
  37. -api more secure and robust (comprovations, hash passwords, ...)
  38. -web page (webapp) --> (de moment es pot penjar la app en versió web tal qual,
  39. que es podrà fer servir des d'un navegador com si fós la app)
  40. ```
  41. --------------------
  42. ####**PARA LA BASE DE DATOS** [para definir como queremos q esté estructurado, pensando en las funcionalidades que queremos tener]:
  43. ```
  44. var userSchema = new Schema({
  45. username: { type: String },
  46. password: { type: String },
  47. description: { type: String },
  48. avatar: { type: String },
  49. mail: { type: String },
  50. phone: { type: String },
  51. telegram: { type: String }
  52. })
  53. var travelSchema = new Schema({
  54. title: { type: String },
  55. description: { type: String },
  56. owner: { type: String },
  57. from: { type: String },
  58. to: { type: String },
  59. date: { type: Date },
  60. periodic: { type: Boolean },
  61. generateddate: { type: Date },
  62. seats: { type: Number },
  63. package: { type: Boolean },
  64. icon: { type: String },
  65. phone: { type: Number },
  66. telegram: { type: String },
  67. collectivized: { type: Boolean },
  68. modality: { type: String } //if is an offering travel or asking for travel
  69. })
  70. var joinSchema = new Schema({
  71. travelId: { type: String },
  72. joinedUserId: { type: String },
  73. joinedUsername: { type: String },
  74. acceptedUserId: { type: String },
  75. joinedAvatar: { type: String }
  76. });
  77. var commentSchema = new Schema({
  78. travelId: { type: String },
  79. commentUserId: { type: String },
  80. commentUsername: { type: String },
  81. comment: { type: String },
  82. commentAvatar: { type: String }
  83. });
  84. ```
  85. --------------------
  86. ####**RESOURCES using**:
  87. car icons [http://www.flaticon.com/packs/transportation-7](http://www.flaticon.com/packs/transportation-7)
  88. css para la app: matterializeCSS [http://materializecss.com/](http://materializecss.com/)
  89. avatars users: [http://www.flaticon.com/packs/animal-icon-collection](http://www.flaticon.com/packs/animal-icon-collection)
  90. mirar per fer hash de passwords https://www.npmjs.com/package/bcrypt-nodejs