commonroutesServer/README.md
README.mdRaw
1#CollectiveCar app
2
3frontend app code: https://github.com/idoctnef/collectivecarApp
4
5**Backend:**
6 Nodejs + Express + MongoDB
7
8**Frontend:**
9 Angularjs + Ionic + MaterialDesign
10
11
12
13
14##To Do List:
15**Backend and Frontend:**
16```
17-signup user --> done
18-loggin user --> done
19-update user profile --> done
20-create new travel --> done
21-update travel --> done
22-delete travel --> done
23-create offeringCar --> done
24-update offeringCar
25-delete offeringCar
26-create askingForTravel (needtravel) --> done
27-update askingForTravel
28-delete askgingForTravel
29-create askingPackage (need transport package) --> done
30-update askingPackage
31-delete askgingPackage
32-user joins a car --> done
33-user offer car to a travel --> done
34-user offer car to a askingpackage --> done
35-user unjoins a car
36-user unoffer car to a travel
37-user unoffer car to a askingpackage
38-comment publication(car, travel, package) --> done
39
40-web page (webapp)
41```
42
43
44--------------------
45####**PARA LA BASE DE DATOS** [para definir como queremos q esté estructurado, pensando en las funcionalidades que queremos tener]:
46
47
48```
49var userSchema = new Schema({
50 username: { type: String },
51 password: { type: String },
52 description: { type: String },
53 avatar: { type: String },
54 mail: { type: String },
55 phone: { type: String },
56 telegram: { type: String }
57})
58var travelSchema = new Schema({
59 title: { type: String },
60 description: { type: String },
61 owner: { type: String },
62 from: { type: String },
63 to: { type: String },
64 date: { type: Date },
65 periodic: { type: Boolean },
66 generateddate: { type: Date },
67 seats: { type: Number },
68 package: { type: Boolean },
69 icon: { type: String },
70 phone: { type: Number },
71 telegram: { type: String },
72 collectivized: { type: Boolean },
73 modality: { type: String } //if is an offering travel or asking for travel
74})
75var joinSchema = new Schema({
76 travelId: { type: String },
77 joinedUserId: { type: String },
78 joinedUsername: { type: String },
79 acceptedUserId: { type: String },
80 joinedAvatar: { type: String }
81
82});
83var 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--------------------
93
94
95####**RESOURCES using**:
96
97car icons [http://www.flaticon.com/packs/transportation-7](http://www.flaticon.com/packs/transportation-7)
98
99css para la app: matterializeCSS [http://materializecss.com/](http://materializecss.com/)
100
101avatars users: [http://www.flaticon.com/packs/animal-icon-collection](http://www.flaticon.com/packs/animal-icon-collection)
102
103
104
105
106
107mirar per fer hash de passwords https://www.npmjs.com/package/bcrypt-nodejs