https://github.com/billmei/selfie-search
Find the profile image associated with an email address.
https://github.com/billmei/selfie-search
Last synced: 6 months ago
JSON representation
Find the profile image associated with an email address.
- Host: GitHub
- URL: https://github.com/billmei/selfie-search
- Owner: billmei
- License: mit
- Created: 2015-07-23T01:46:38.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2017-07-13T04:39:22.000Z (about 8 years ago)
- Last Synced: 2025-04-17T01:35:54.887Z (6 months ago)
- Language: JavaScript
- Homepage: http://selfie-search.herokuapp.com/
- Size: 491 KB
- Stars: 8
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Selfie Search
Find the profile image associated with an email address.
**DEMO: [http://selfie-search.herokuapp.com/](http://selfie-search.herokuapp.com/)**
Built on Node.js, Express.js, and Postgres.
## Architecture
[](https://docs.google.com/drawings/d/1WOe29v3Ka4zwd5yDdRu7bBWAjWM1eoS1wPpJVAo4YSE)
Profile images are searched first through Gravatar, then after through FullContact. The original plan was to scrape Facebook, G+, Twitter, etc. directly but none of these websites offer public API access.
## Running Locally
Make sure you have [Node.js](http://nodejs.org/) installed.
```sh
$ git clone git@github.com:kortaggio/selfie-search.git # or your own fork
$ cd selfie-search
$ npm install
```## Database Configuration
Install postgres:
```sh
$ sudo aptitude install postgresql postgresql-contrib
```Configure postgres:
```sh
$ su
$ useradd
$ passwd
```Open `/etc/pstgresql/9.3/main/pg_hba.conf` as root and change the line
local postgres all peer
to
local all all peer
Reload postgres
```sh
$ sudo /etc/init.d/postgresql reload
```Create the user in postgres:
```sh
$ su - postgres
$ psql
``````
postgres=# CREATE USER ;
postgres=# CREATE DATABASE selfiesearch;
postgres=# \connect selfiesearch;
selfiesearch=# GRANT ALL privileges ON DATABASE selfiesearch TO ;
```Set up the tables:
```sh
$ node models/create.js
```To open a connection to the database, use:
```sh
$ psql -d selfiesearch
```## Third party APIs
This app requires an API key from [FullContact](https://www.fullcontact.com/). Sign up for an account to get a key, then create an `.env` file in the root folder and save your key:
FULLCONTACT_API_KEY=
## Run
```sh
$ npm start
```Your app should now be running on [localhost:5000](http://localhost:5000/).