Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sujaykundu777/faceapp

Face Recognition App built using React and Node
https://github.com/sujaykundu777/faceapp

api expressjs face-detection nodejs react redux

Last synced: about 1 month ago
JSON representation

Face Recognition App built using React and Node

Awesome Lists containing this project

README

        

## Face Recognition App Using React

### Installation Steps for Development

Clone the github repo:

```
$ git clone https://github.com/sujaykundu777/faceapp.git
$ cd faceapp
```

#### Requirements : Install node, npm and mongodb locally

Install necessary packages for server

```
$ npm install
```

Install necessary packages for client

```
$ cd client
$ npm install
```

Create .env file for configuring Database Server Access :

```
$ cd faceapp
$ touch .env
```
Paste the following

```
DB_HOST=localhost
DB_NAME =database
DB_USER =db_user
DB_PASS= db_password
PORT=3001
NODE_ENV=development
```

Start the mongod server locally

```
$ sudo service mongod start
```

Start the app

```
$ cd faceapp
$ npm start
```
The App should start at http://localhost:3000

Create the first User

```
$ curl -i http://localhost:3001/api/setup
```

Login the App using the following credentials
```
Email : [email protected]
Password: pass123
```

Todo :
- Faceplusplus ( Not working )
- Deploy to Heroku (Done)

Sample Request for Face++ API

```
curl -X POST "https://api-us.faceplusplus.com/facepp/v3/detect" -F "api_key=" \
-F "api_secret=" \
-F "image_file=@image_file.jpg" \
-F "return_landmark=1" \
-F "return_attributes=gender,age"
```