Browse Source

users valoration started

pull/2/head
idoctnef 8 years ago
parent
commit
13578f3e01
2 changed files with 27 additions and 15 deletions
  1. +21
    -14
      README.md
  2. +6
    -1
      models/userModel.js

+ 21
- 14
README.md

@ -14,30 +14,37 @@ frontend app code: https://github.com/idoctnef/collectivecarApp
##To Do List:
**Backend and Frontend:**
```
-signup user --> done
-loggin user --> done
-update user profile --> done
-create new travel --> done
-update travel --> done
-delete travel --> done
-create offeringCar --> done
-signup user --> done
-loggin user --> done
-update user profile --> done
-create new travel --> done
-update travel --> done
-delete travel --> done
-create offeringCar --> done
-update offeringCar
-delete offeringCar
-create askingForTravel (needtravel) --> done
-create askingForTravel (needtravel) --> done
-update askingForTravel
-delete askgingForTravel
-create askingPackage (need transport package) --> done
-create askingPackage (need transport package) --> done
-update askingPackage
-delete askgingPackage
-user joins a car --> done
-user offer car to a travel --> done
-user offer car to a askingpackage --> done
-user joins a car --> done
-user offer car to a travel --> done
-user offer car to a askingpackage --> done
-user unjoins a car
-user unoffer car to a travel
-user unoffer car to a askingpackage
-comment publication(car, travel, package) --> done
-comment publication(car, travel, package) --> done
-valorating users system
-web page (webapp)
-UX design
-interface graphic design
-icons
-api more secure and robust (comprovations, hash passwords, ...)
-web page (webapp) --> (de moment es pot penjar la app en versió web tal qual,
que es podrà fer servir des d'un navegador com si fós la app)
```

+ 6
- 1
models/userModel.js

@ -9,6 +9,11 @@ var userSchema = new Schema({
avatar: { type: String },
mail: { type: String },
phone: { type: String },
telegram: { type: String }
telegram: { type: String },
valorations: [{
username: { type: String },
value: { type: Number },
comment: { type: String }
}]
})
module.exports = mongoose.model('userModel', userSchema);

Loading…
Cancel
Save