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.

114 lines
3.8 KiB

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