User service for Tinder App. Handles and stores all the user information
View the project roadmap here
See CONTRIBUTING.md for contribution guidelines.
Query will happen with one of two unique keys
{
query: NUMBER or STRING,
gender: STRING,
filter: ARRAY
}
query
Used with type user. User ID num or zone string. Returns random user when emptygender
Used with type user when querying by location. [OPTIONAL]. The gender of users to retrievefilter
Used with type user when querying by location. [OPTIONAL]. An array of user IDs to omit from results, e.g. swiped users
Get full information on user with ID #7443
{
query: 7443
}
Get a random user
{
}
Get all females from "Zone A" except userIDs AV9LofjhxcHrw1GRCa9Z and AV9LjC3EKmvG0ooIGY4T
{
query: 'A',
gender: 'F',
filter: ['AV9LofjhxcHrw1GRCa9Z', 'AV9LjC3EKmvG0ooIGY4T']
}
[{
id: NUMBER,
name: STRING,
email: STRING,
gender: STRING,
location: STRING,
photoCount: NUMBER,
dob: NUMBER,
traits: ARRAY
}]
The return object has been built to include information irrelevant to the MVP, for future expansion opportunity
id
The user's ID numbername
The user's nameemail
The user's email countgender
The user's genderlocation
Which zone the user is located inphotoCount
The number of photos the user has uploadeddob
Represents year the user was borntraits
An array of objective terms that can be used to describe the user's physical appearance. Represents a photo of user.
- Node 6.9.x
- Postgresql 9.6.x
- express 4.16.2
- faker 4.1.0
- mocha 4.0.1
- chai 4.1.2
- pg 7.3.0
- pg-hstore 2.3.2
- sequelize 5.15.0
Run npm install
- Simulate new user sign-ups
- Simulate account deletions
- Simulate user information pulls
- Time for insertion saved
- Time for retrieve saved
- Time for remove saved
- Errors logged out into log directory
Run npm run document
to generate a JSDoc documentation directory
Users
col | type |
---|---|
name | VARCHAR |
traits | VARCHAR |
gender | VARCHAR |
photo_count | INT |
VARCHAR | |
location | VARCHAR |