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.

107 lines
2.9 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
  19. -create askingForTravel (needtravel) --> done
  20. -update askingForTravel
  21. -delete askgingForTravel
  22. -create askingPackage (need transport package) --> done
  23. -update askingPackage
  24. -delete askgingPackage
  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
  29. -user unoffer car to a travel
  30. -user unoffer car to a askingpackage
  31. -comment publication(car, travel, package) --> done
  32. -web page (webapp)
  33. ```
  34. --------------------
  35. ####**PARA LA BASE DE DATOS** [para definir como queremos q esté estructurado, pensando en las funcionalidades que queremos tener]:
  36. ```
  37. var userSchema = new Schema({
  38. username: { type: String },
  39. password: { type: String },
  40. description: { type: String },
  41. avatar: { type: String },
  42. mail: { type: String },
  43. phone: { type: String },
  44. telegram: { type: String }
  45. })
  46. var travelSchema = new Schema({
  47. title: { type: String },
  48. description: { type: String },
  49. owner: { type: String },
  50. from: { type: String },
  51. to: { type: String },
  52. date: { type: Date },
  53. periodic: { type: Boolean },
  54. generateddate: { type: Date },
  55. seats: { type: Number },
  56. package: { type: Boolean },
  57. icon: { type: String },
  58. phone: { type: Number },
  59. telegram: { type: String },
  60. collectivized: { type: Boolean },
  61. modality: { type: String } //if is an offering travel or asking for travel
  62. })
  63. var joinSchema = new Schema({
  64. travelId: { type: String },
  65. joinedUserId: { type: String },
  66. joinedUsername: { type: String },
  67. acceptedUserId: { type: String },
  68. joinedAvatar: { type: String }
  69. });
  70. var commentSchema = new Schema({
  71. travelId: { type: String },
  72. commentUserId: { type: String },
  73. commentUsername: { type: String },
  74. comment: { type: String },
  75. commentAvatar: { type: String }
  76. });
  77. ```
  78. --------------------
  79. ####**RESOURCES using**:
  80. car icons [http://www.flaticon.com/packs/transportation-7](http://www.flaticon.com/packs/transportation-7)
  81. css para la app: matterializeCSS [http://materializecss.com/](http://materializecss.com/)
  82. avatars users: [http://www.flaticon.com/packs/animal-icon-collection](http://www.flaticon.com/packs/animal-icon-collection)
  83. mirar per fer hash de passwords https://www.npmjs.com/package/bcrypt-nodejs