mlegy / do-me-favor-api Goto Github PK
View Code? Open in Web Editor NEWDo me a favour API
Do me a favour API
Get nearby favors.
Add favor.
Add benefactor to a favor.
Mark favor as done.
Implement data access layer for the models using mongoose as follow:
Create user
Get user by id
Get user by email
Get all users in a location
Update user current location
Add frequents location to user
Add favor
Get favor by id
Get all favors in a location
Get only undone favors in a location
Add benefactor to favor
Mark favor as done
Implement the main models for api as follow:
Field | Type | Required |
---|---|---|
id | String | ✅ |
first_name | String | ✅ |
last_name | String | ✅ |
String | ✅ | |
current_location | Location | ✅ |
frequents_location | List<Location> | ❌ |
avatar | String | ❌ |
favors | List<FavorID> | ✅ |
following | List<UserID> | ✅ |
followers | List<UserID> | ✅ |
last_seen | Date | ✅ |
created_at | Date | ✅ |
updated_at | Date | ✅ |
Field | Type | Required |
---|---|---|
id | String | ✅ |
title | String | ✅ |
description | String | ✅ |
owner | UserID | ✅ |
location | location | ✅ |
benefactor | UserID | ❌ |
is_done | Boolean | ✅ |
created_at | Date | ✅ |
updated_at | Date | ✅ |
Field | Type | Required |
---|---|---|
id | String | ✅ |
x | String | ✅ |
y | String | ✅ |
Sign up
Sign in
Get user by id/email
Update user location
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.