A social network for users to share and view nearby posts. This is the API part, check herefor the front-end features.
Deploy on Google App Engine.
- Golang
- ElasticSearch - open source search and analytics engine
- Google Vision API - pre-trained machine learning models classify images into predefined categories.
- JWT - user authentication
Feature | Method | Endpoint |
---|---|---|
User register | POST | /signup |
User login | POST | /login |
Create a post | POST | /post |
Search posts (within a range) | GET | /search?lat=xx&lon=xx&range=xx |
Filter image posts with faces | GET | /cluster?term=face |
{
"username": {"type": "keyword"},
"password": {"type": "keyword", "index": false},
"age": {"type": "long", "index": false},
"gender": {"type": "keyword", "index": false}
}
{
"user": { "type": "keyword", "index": false },
"message": { "type": "keyword", "index": false },
"location": { "type": "geo_point" },
"url": { "type": "keyword", "index": false },
"type": { "type": "keyword", "index": false },
"face": { "type": "float" }
}