/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.

Primary LanguageTypeScript

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

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

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

  2. 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 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);
  1. Enter your server details in face-recognition-web-app/face-recognition-api/.env file.

Modules used:

  1. React
  2. Clarifai
  3. Tachyons
  4. Bcrypt
  5. Cors
  6. Express
  7. pg
  8. Nodemon (devDependency)
  9. React-particles-js

Connect with me:

kunaljain0212 _kunaaaaalll