Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/kunaljain0212/face-recognition-web-app

It is a full-stack working web application using Clarifai Web API for face detection in an image, using a website with frontend designed completely using React.js, server using Node.js and Express.js and PostgreSQL for the database. The frontend of the application has been deployed to Vercel, backend to Heroku and for database I've used elephantSQL which is a hosted service for PostgreSQL.
https://github.com/kunaljain0212/face-recognition-web-app

bycrypt clarifai clarifai-api css express expressjs html node node-js node-module nodejs nodemon particles-js pgsql postgres postgresql psql psql-database react reactjs

Last synced: about 20 hours ago
JSON representation

It is a full-stack working web application using Clarifai Web API for face detection in an image, using a website with frontend designed completely using React.js, server using Node.js and Express.js and PostgreSQL for the database. The frontend of the application has been deployed to Vercel, backend to Heroku and for database I've used elephantSQL which is a hosted service for PostgreSQL.

Awesome Lists containing this project

README

        

# face-recognition-web-app (FRONTEND)
It is a full-stack working web application using Clarifai Web API for face detection in an image,using a website with frontend designed completely using React.js, server using Node.js and Express.js and PostgreSQL for database. Frontend of the application has been deployed to Vercel, backend to Heroku and for database I've used elephantSQL which is a hosted service for PostgreSQL.

[Do check out the application here](http://face-recognition.jainkunal.me/)

### Steps to start:
1. Clone this repo

2. Go to face-recognition-web-app/face-recognition-frontend
This is the main project folder for the front end.

3. Run `npm install`
This will install all the dependencies.

4. Go to face-recognition-web-app/face-recognition-api
This is the server i.e. the back-end for the application

5. Run `npm install`
This will install all the dependencies.

6. You must add your own API key and Databse URI in the `face-recognition-web-app/face-recognition-api/.env` file to connect to Clarifai and your database. The name of the variables are available in .example.env file.

You can grab your free Clarifai API key from here [here](https://www.clarifai.com/)

7. Run `npm start`
This will run the server, on port 8000

8. Go to face-recognition-web-app/face-recognition-webapp and run `npm start`
This will run the frontend, on port 3000

### Configuring Database:
I've used [ElephantSQL](https://www.elephantsql.com/) which is a hosted service for postgreSQL but you can create you local database as well.
1. Create a database face-recog (Or any other name you prefer)
2. Create a table named users, with following structure:
```
CREATE TABLE users (id SERIAL PRIMARY KEY, email TEXT UNIQUE NOT NULL, password TEXT NOT NULL, entries BIGNINT DEFAULT O);
```
3. Enter your server details in `face-recognition-web-app/face-recognition-api/.env` file.

#### Modules used:
1. [React](https://www.npmjs.com/package/react)
2. [Clarifai](https://www.npmjs.com/package/clarifai)
3. [Tachyons](https://www.npmjs.com/package/tachyons)
4. [Bcrypt](https://www.npmjs.com/package/bcrypt-nodejs)
5. [Cors](https://www.npmjs.com/package/cors)
6. [Express](https://www.npmjs.com/package/express)
7. [pg](https://www.npmjs.com/package/pg)
8. [Nodemon (devDependency)](https://www.npmjs.com/package/nodemon)
9. [React-particles-js](https://www.npmjs.com/package/react-particles-js)

### Connect with me:
kunaljain0212
_kunaaaaalll